How to disable the magnifying glass in UIWebview?

Mashhadi picture Mashhadi · Aug 23, 2011 · Viewed 9.3k times · Source

How can I disable the magnifying glass that appears when you hold the touch on a UIWebView? I don't want to to disable user interaction but I don't want the webview to show that zoom glass. Any Ideas?

Answer

jtbandes picture jtbandes · Aug 23, 2011

No, the loupe is inextricably linked to selection. To disable it, you will have to disable selection entirely (you can use -webkit-user-select: none to do that).