我怎么知道放大镜何时出现在UIWebView中?

时间:2022-09-24 19:44:11

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

如何检测放大镜何时出现在UIWebView中?

1 个解决方案

#1


0  

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.

假设您正在编写要在应用商店中发布的应用程序,则不能 - UIWebView的结构对您来说是不透明的,您无法深入了解其组件部分。虽然我怀疑有可能进入其结构并确切地知道什么时候被触发,但是你会冒很大的风险,Apple会在后续的操作系统更新中改变UIWebView的结构并破坏你的应用程序。

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.

因此,除非您不在公共API之外(因此通过应用程序商店以外的渠道提供),我担心您可能会失去运气。

#1


0  

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.

假设您正在编写要在应用商店中发布的应用程序,则不能 - UIWebView的结构对您来说是不透明的,您无法深入了解其组件部分。虽然我怀疑有可能进入其结构并确切地知道什么时候被触发,但是你会冒很大的风险,Apple会在后续的操作系统更新中改变UIWebView的结构并破坏你的应用程序。

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.

因此,除非您不在公共API之外(因此通过应用程序商店以外的渠道提供),我担心您可能会失去运气。