Reputation: 916
I'm trying to load a url . But sometimes it gives a error url in the following delegate method.
- (BOOL)webView:(UIWebView *)theWebView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
NSURL* url = [request mainDocumentURL];
NSString* absoluteString = [url absoluteString];
NSLog(@"%@",absoluteString);}
I want to know that how can i cancel the current url request and reload a new url ?
Upvotes: 0
Views: 665