Category: WebView

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...

UIWebView Tutorial 0

UIWebView Tutorial

In this tutorial, we will open the Google home page in an UIWebView object.In this tutorial, we will open the Google home page in an UIWebView object. This is how the application will look...