how to capture the clicked url on UIWebView
- by user262325
Hello everyone
I hope to capture the clicked url on an UIWebView
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
NSURL *URL = [request URL];
NSString *s=[URL absoluteString];
}
but I noticed that this URL is not the url which is clicked and will be displayed on UIWebView, normally it is the url of current web page display on UIWebView.
Welcome any comment
Thanks
interdev