MyWebViewController.h #import <UIKit/UIKit.h> @interface MyWebViewController : UIViewController <UIWebViewDelegate> { UIWebView *webView; } @end MyWebViewController.m #import "MyWebViewController.h" @implementation MyWebViewController // Implement loadView to create a view hierarchy programmatically. - (void)loadView { self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFra