UIWebView交互隐藏uitoolbar
当您触摸/滚动/捏合/等等时。 (即与 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个示例之前对我有用:
https://github.com/psychs/iphone-样本/树/master/WebViewTappingHack
this sample worked for me before:
https://github.com/psychs/iphone-samples/tree/master/WebViewTappingHack
我认为要做类似的事情,您必须子类化 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.