質問

I have a UIWebview in which a twitter page loads. Because twitter is being opened from a mobile device it opens the mobile twitter which has a specific width depending on device, and device orientation. Now my query: my UIWebview's width is shorter than mobile twitters width so the user has to scroll sideways to read content. I do not want that and want to change the zoom or preferably the width of the twitter page so it can fit in my uiwebview.The height is fine, scrolling up or down is normal. I have tried using "setScalesPageTofit" in my "webViewDidFinishLoad" and that displays the whole twitter page going out of the webview bounds. I have also tried using "sizeTofit" but no success. If any more details required please left me know Thank you very much..

役に立ちましたか?

解決

Checkout this SO Post: Getting iPhone's mobile twitter webapp inside UIWebView. The person who posted the question answered his own question.

The trick seems to be setting the correct "device-width".

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top