- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
CGRect webFrame = [[UIScreen mainScreen] applicationFrame];
// CGRect webFrame = CGRectMake(0, 0, 320, 480);
UIWebView *webView = [[[UIWebView alloc] initWithFrame:webFrame] autorelease];
webView.backgroundColor = [UIColor whiteColor];
webView.scalesPageToFit = YES;
webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
webView.delegate = self;
[self.view addSubview: webView];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/"]]];
}
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
CGRect webFrame = [[UIScreen mainScreen] applicationFrame];
// CGRect webFrame = CGRectMake(0, 0, 320, 480);
UIWebView *webView = [[[UIWebView alloc] initWithFrame:webFrame] autorelease];
webView.backgroundColor = [UIColor whiteColor];
webView.scalesPageToFit = YES;
webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
webView.delegate = self;
[self.view addSubview: webView];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/"]]];
}