Hi,
I try to display a simple webpage inside my UIWebView without a Nib. The problem is when I click on my buttun a new page blanck page appear but nothing is display. Did I miss something?
- (void)loadView { UIView *topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; self.webView = web; NSString *urlAddress = @"http://www.google.com"; NSURL *url = [[[NSURL alloc] initWithString:urlAddress] autorelease]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [webView loadRequest:requestObj]; [topView addSubview:self.webView]; [web release]; }
thank you,