- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
//my code
}
Currently my above delegate method is called, once i touch inside in my webview.
So i want to know what is the difference between following 2 navigationtype: UIWebViewNavigationTypeOther
& UIWebViewNavigationTypeLinkClicked
.
Because some of the URL on selection provides navigation Type as UIWebViewNavigationTypeOther
& some provide UIWebViewNavigationTypeLinkClicked
.
From the apple document i cannot able to clear my self.
UIWebViewNavigationTypeLinkClicked
happens if the user taps a <a href="">
style link, if the change is done from within Javascript (onclick
event for example) UIWebViewNavigationTypeOther
is used.
Furthermore UIWebViewNavigationTypeOther
is used if you first load a page or you'll be redirected by a meta refresh or something
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With