The UIWebView doesn't display url
问题 I Load UIWebView using this code : NSString *a=@"http://www.google.com/"; NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:a]]; [aWebView loadRequest:theRequest]; But nothing is loaded? What I do wrong? Please help me 回答1: 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];