如何在iPad应用程序隐藏状态栏的区域中获取触摸事件? [英] How Can I Get touch events in an iPad App's hidden status bar's area?

查看:105
本文介绍了如何在iPad应用程序隐藏状态栏的区域中获取触摸事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在帖子上读到了关于iPhone的这个问题这里

I read about this problem for the iPhone on the post here.

帖子说它只是一个模拟器问题。现在我的iPad应用程序在设备上遇到了同样的问题。该应用程序有一个状态栏 - 但在将其隐藏在应用程序后,我无法点击/触摸该区域(使用iOS 4.2版)。

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).

提前致谢。

推荐答案

如果你非常绝望,你可以在(不可见)状态栏上面拥有自己的窗口并处理事件那里。设置它的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.

这篇关于如何在iPad应用程序隐藏状态栏的区域中获取触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆