Everything works fine, but sometimes uiwebview did not finish the load. I guess that sometimes uiwebview waits to long for response and than do not finish load. Had someone have familiar issue?
Yes, I have implemented the next methods:
- (void)webViewDidStartLoad:(UIWebView *)webView
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
- (void)webViewDidFinishLoad:(UIWebView *)webView
Yes, I setup the delegate. As I said - everything works fine, but sometimes it do not finish to load, it do not receives any error.
- (void)myTimer:(NSTimer *)timer
{
NSLog(@"WV=%@ delegate=%@ isLoading=%d", self.webView, self.webView.delegate, self.webView.isLoading);
}
It prints all the time:
[378:c07] WV=UIWebView: 0x755f690; frame = (0 0; 320 416); autoresize = W+H; layer = CALayer: 0x755f6f0>> delegate=MainViewController: 0x755b130> isLoading=1;
I also tried to setup cache policy and disable it. It didn't help. Can it be the problem with html frame? When it is loading some elements from the webpage are disappear (it happens when webpage is loaded, but usually after elements disappeared it shows a new page, but in this case it is not).