I am writing a app that has a UIWebView that displays a HTML5 page. I want to annotate some text on the web page and save it in SQLite database. The annotated text must be changed to a specific color
I am writing a app that has a UIWebView that displays a HTML5 page. I want to annotate some text on the web page and save it in SQLite database. The annotated text must be changed to a specific color as a visual effect
开发者_StackOverflow社区.
Any suggestions that how can I select and get the text back in Objective-C?
You have two choices:
- Parse the HTML5 document by hand
- Inject Javascript into the page and walk the document. See Search and highlight text in UIWebView
精彩评论