UIWebView - capturing clicks
Question
Is there a way to capture clicks on links within a UIWebView. I want to find out the address that the user has clicked, but not actually go to the page.
Is this possible?
Solution
Yes there is a delegate method you're view controller can implement:
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
reference:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow