webViewDidFinishLoad exception
Posted
by Nava Carmon
on Stack Overflow
See other posts from Stack Overflow
or by Nava Carmon
Published on 2010-04-10T21:02:32Z
Indexed on
2010/04/10
21:23 UTC
Read the original article
Hit count: 435
Hi,
I have a screen with a webView in my navigation controller stack and when I navigate from this view back to a previous before the page completely loaded I get a EXCEPTION_BAD_ACCESS. Seems, that the view with a webView being released before it comes to webViewDidFinishLoad function. My question is how to overcome this problem? I don't expect from the user to wait till the page loads... The code is very simple:
- (void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
NSURL *url = [NSURL URLWithString:storeUrl];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[browser loadRequest:requestObj];
}
TIA
© Stack Overflow or respective owner