Could not find a way to iterate / access links in UIWebView, but will this work for you? Access to page source:
NSString *source = [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('html')[0].outerHTML"];
then find the tags that you think are links (e.g. href = ...)
Then you still need to βclickβ these links. Is it enough for you to go to the URL provided in the link? If so, just use loadRequest for this. If you need more advanced behavior (for example, make sure javascripts are running correctly), you will need to do more magic to parse them and execute them using stringByEvaluatingJavaScriptFromString.
source share