综合开发

How can I search in a UIWebView?

微信扫一扫,分享到朋友圈

How can I search in a UIWebView?

I need to perform search in an html page displayed in a UIWebView control. The functionality I need is something that Safari has, when you hit command/ctrl F for searching the document for some word and the program highlights the hits for you. Is there any easy solution for this problem?

I know it’s been a long time since you asked this question, but it’s still a pretty common question people have so I put together a sample project in case anyone else is asking the same question. The project is a super simple app that loads an HTML file and can search and highlight any keyword. You can download the sample project here:

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

Scott

美股早盘涨幅扩大 道指涨逾700点

上一篇

C语言之歌词解析

下一篇

你也可能喜欢

评论已经被关闭。

插入图片

热门栏目

How can I search in a UIWebView?

长按储存图像,分享给朋友