weiView请求一个网址并展示出来:
注意以下代码写在.m中记住要写一个协议UIWebViewDelegate
由于有点简单,这里不做过多解释谢谢大家
UIWebView *tv = [[UIWebView alloc]initWithFrame:self.view.frame];
NSURL *url = [NSURL URLWithString:@"http://lol.qq.com"];
NSURLRequest *request = [[NSURLRequest alloc]initWithURL:url];
[tv loadRequest:request];
[self.view addSubview:tv];