How can I know when the Magnifying Glass comes up in UIWebView?

我是研究僧i 提交于 2020-01-02 23:08:35

问题


How I can detect when the magnifying glass comes up in a UIWebView?


回答1:


Assuming you're writing an app to release on the app store, you can't - the structure of a UIWebView is opaque to you, and you can't drill down into its component parts. Whilst I suspect it would be possible to descend into its structure and figure out exactly what was getting triggered when, you run a very large risk that Apple will change UIWebView's structure in a subsequent OS update and break your app.

So unless you're going outside of the public API (and thus making available through channels other than the app store) I'm afraid you may be out of luck.



来源:https://stackoverflow.com/questions/5408776/how-can-i-know-when-the-magnifying-glass-comes-up-in-uiwebview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!