iOS-UIWebView

NSString *strUrl = @"http://www.baidu.com";
    NSURL *url = [[NSURL alloc]initWithString:strUrl];
    
    //网络的请求对象
    NSURLRequest *request = [[NSURLRequest alloc]initWithURL:url];
    
    UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
    [self.view addSubview:webView];
    
    //打开网页

    [webView loadRequest:request];

你可能感兴趣的:(iOS-UIWebView)