UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
NSString *urlStr = @"https://www.baidu.com/";
//创建request对象NSMutableURLRequest *mRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlStr]];
//网页控件加载一个网络请求
[webView loadRequest:mRequest];
webView.backgroundColor = [UIColor grayColor];
[self.view addSubview:webView];