How to get url which I hit on UIWebView?
问题 NSString *testString =[NSString stringWithFormat:@" <a href = \\\\ \"www.google.com\">Google</a>"]; [webView loadHTMLString:testString baseURL:nil]; I want to get the URL when I click on this UIWebView content in -(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { if ( inType == UIWebViewNavigationTypeLinkClicked ) { [[UIApplication sharedApplication] openURL:inRequest.mainDocumentURL]; return NO; } return