UIWebView selection
- by Infinity
Hello guys!
I subclassed the UIWindow to get the clicks from UIWebView. I used a tutorial for this.
Here is the link: Tutorial
It is working, but after I've got and other tutorial from the writer where he shows how to highlight the text in UIWebView. Here's the second link. But I can't use this second one. I tried to run this code in the
- (void)userDidTapWebView:(id)tapPoint;
delegate method. This delegate method is called when I tap in the UIWebView. Maybe somebody can help me to correct the script? I would like to get the tapped anchor's link. I tried many different java script, but until now I couldn't get the tapped anchor's link.
One of the tries is when I tried to add a function to document.onClick. But I tap an anchor then it needs a second tap to get the anchor and I can't get the link neither with this method.