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.
Thank youHow about:
-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)
fromInterfaceOrientation
{
[webView reload];
}
精彩评论