如何获取 iPad 应用程序隐藏状态栏区域中的触摸事件?
我在帖子 此处。
帖子说这只是模拟器问题。现在我的 iPad 应用程序和设备本身也遇到了同样的问题。该应用程序有一个状态栏 - 但将其隐藏在应用程序中后我无法单击/触摸该区域(使用 iOS 版本 4.2)。
提前致谢。
I read about this problem for the iPhone on the post here.
The post says it's only a simulator problem. Right now I've got the same problem on my iPad app, on the device itself. The app has a status bar - but after hiding it in app i can't click/touch in that area (using iOS version 4.2).
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您足够绝望,您可以在(不可见的)状态栏顶部拥有自己的窗口并在那里处理事件。将其 windowLevel 设置得足够高,就可以开始了。但是,这对您来说可能不是一个好的解决方案,因为无法将触摸从一个窗口转发到另一个窗口。您最终可能需要自己进行大量的触摸处理。
If you're desperate enough, you could have your own window on top of the (invisible) status bar and process events in there. Set its windowLevel high enough and you're good to go. However, that might not be a good solution for you, because there's no way to forward touches from one window to another. You might end up having to do a lot of touch handling yourself.