How can I search in UIWebView?

I need to search on the html page displayed in the UIWebView control. The required functionality is what Safari has when you press the / ctrl F command to search for a document for a word, and the program selects hits for you. Is there a simple solution to this problem?

+3
source share
2 answers

I know that it has been a long time since you asked this question, but this is still a fairly common question, so I put together a sample project if someone asks the same question. The project is a super simple application that downloads an HTML file and can search and highlight any keyword. You can download a sample project here:

http://dl.dropbox.com/u/12280770/TheSearcher.zip

Scott

+6
source

Source: https://habr.com/ru/post/1710622/


All Articles