I am adding a UIWebView to my view, when I am in the picture works fine but when I use that same UIWebView I load in the landscape, so it does not fill the screen. I suspect how I am setting the frame:
CGRact screen = [[USScreen main screen] border]; UIWebView * webView = [[UIWebView alloc] initWithFrame: CGRectMake (0, 0, screen size.width, screen.size.height)]; WebView.autoresizingMask = UIViewAutoresizingFlexibleWidth; WebView.scalesPageToFit = Yes; Is there a better way to do this, will it load properly in both landscape and image, and fill the screen when rotated?
How can you be sure that the view of parents is changing shape in full width? UIWebView Subview will not be larger than its parents ...
Comments
Post a Comment