UIWebView控件
时间:2014-08-11 17:16:32
收藏:0
阅读:237
用处:实现一个web浏览器,加载静态html,动态url,调用js
//加载动态url
self.webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
NSString *str = @"http://www.baidu.com";
NSURL *url = [NSURL URLWithString:str];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[self.webView loadRequest: request];
评论(0)