I am loading a webpage in a UIWebView using the following method
[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];
}
}];
Firstly, for a few pages the images are not loaded at all. And secondly, when I refresh a page later by
[_webView reload];
The web view turns blank.
Does anyone know what's happening here?
TIA, Nikhil