@interface ViewController ()
@end
@implementation ViewController
{
UIWebView *webView;
}
(void)viewDidLoad {
[super viewDidLoad];
webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
NSURL *url = [NSURL URLWithString:@"http://www.baidu.com"];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url];
[webView setUserInteractionEnabled:YES];
[webView loadRequest:request];
[self.view addSubview: webView];
}
(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
找到答案了,ios的传输限制: