iphone UIWebView 的使用
【UIWebView 的使用】
1:引用外部连接
[super viewdidload];
CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0);
UIWebView *webView = [[uiwebview alloc] initWithFrame:webFrame];
[webview setbackgroundcolor:[uicolor whitecolor]];
NSString *urlAddress = @"http://www.baidu.com";
NSURL *url = [nsurl urlwithstring:urladdress];
NSURLRequest *requestObj = [nsurlrequest requestwithurl:url];
[webview loadrequest:requestobj];
self.view = webView;