Category: landscape

Webview resizes automatically to portrait and landscape view in iphone 0

Webview resizes automatically to portrait and landscape view in iphone

contentView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];contentView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);self.view = contentView;self.view.autoresizesSubviews = YES;CGRect webFrame = [[UIScreen mainScreen] applicationFrame];webFrame.origin.y -= 20.0;webView = [[UIWebView alloc] initWithFrame:webFrame];[contentView addSubview:webView]; webView.scalesPageToFit = YES;webView.autoresizesSubviews = YES;webView.autoresizingMask=(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth);[webView...