开发者

UIWebView content resize issue in iPad

I have a UIWebview in iPad. I have attached a screens shot. Please see its coordinates and the masking of its po开发者_如何学编程sition (The web view is added to xib in portrait mode). However when I load that in portrait mode or landscape mode the content is fit to the size of the web view. Issue arise when I turn the iPad to a different orientation. That means even though the UIWebView resizes properly the content doesnt resize properly. As a work around seen in many places I used the following meta tag in the head section of the web page Im loading.

However also used the "webView.scalesPageToFit = YES". Still no luck. Please help me to solve this problem.

UIWebView content resize issue in iPad

Thank you


How about:

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)
   fromInterfaceOrientation
{
   [webView reload];
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜