开发者

Annotating text in UIWebView

开发者 https://www.devze.com 2023-03-02 18:37 出处:网络
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:

  1. Parse the HTML5 document by hand
  2. Inject Javascript into the page and walk the document. See Search and highlight text in UIWebView
0

精彩评论

暂无评论...
验证码 换一张
取 消