How Can I Get touch events in an iPad App's hidden status bar's area?

百般思念 提交于 2019-12-11 05:32:27

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/5471482/how-can-i-get-touch-events-in-an-ipad-apps-hidden-status-bars-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!