UIWebView selection
Posted
by Infinity
on Stack Overflow
See other posts from Stack Overflow
or by Infinity
Published on 2010-06-10T10:37:19Z
Indexed on
2010/06/10
10:42 UTC
Read the original article
Hit count: 336
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.
© Stack Overflow or respective owner