The UIWebView doesn't display url
I Load UIWebView using this code :
NSString *a=@"http://www.google.com/";
NSURLRequest *theRequest=[NS开发者_Go百科URLRequest requestWithURL:[NSURL URLWithString:a]];
[aWebView loadRequest:theRequest];
But nothing is loaded? What I do wrong?
Please help me
try This code may be helped............
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(50, 100, 690, 750)];
//webView.delegate=self;
NSString *urlAddress = @"http://www.google.com/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[self.view addSubview:webView];
精彩评论