【发布时间】:2013-04-22 11:58:57
【问题描述】:
我正在使用以下方法在 UIWebView 中加载网页
[NSURLConnection sendAsynchronousRequest:request
queue:loadingQueue
completionHandler:^(NSURLResponse *response,
NSData *data,
NSError *error) {
if(!error) {
[_webView loadData: data
MIMEType: [response MIMEType]
textEncodingName: [response textEncodingName]
baseURL:nil];
}
}];
首先,对于一些页面,图像根本没有加载。其次,当我稍后刷新页面时
[_webView reload];
网络视图变为空白。
有人知道这里发生了什么吗?
TIA, 尼基尔
【问题讨论】:
标签: ios uiwebview nsurlconnection