UIWebView交互隐藏uitoolbar

发布于 2024-10-03 05:47:28 字数 184 浏览 0 评论 0原文

当您触摸/滚动/捏合/等等时。 (即与 UIWebView 交互),我想隐藏 UIToolbar 元素以模仿“全屏”外观,并使用 UIButton 返回工具栏代码> 单击。有什么方法可以确定 UIWebView 何时被触摸?

谢谢!任何示例代码都值得赞赏

When you touch/scroll/pinch/etc. (ie interact) with a UIWebView, I want to hide a UIToolbar element to imitate a "Full Screen" look and bring the toolbar back with a UIButton click. Any way to determine when the UIWebView is touched?

Thanks! Any sample code is appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

还在原地等你 2024-10-10 05:47:28

我认为要做类似的事情,您必须子类化 UIWebView 并实现一些用于点击事件处理的 UIView 方法。然后使用委托让其他对象知道要做什么。您甚至可以设置超时等以使其自动化。

I think for doing something like that you'd have to subclass UIWebView and implement some of the UIView methods for tap event handling. Then use a delegate to let other objects know what to do. You could even set timeouts and such to automate it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文