iPad landscape-only app not responding to touches near the bottom of the screen

谁说我不能喝 提交于 2019-12-05 08:37:28

More than likely, your autoresizing masks are not set correctly. This means that the view's bounds are not changing to match the window. Touches are only detected within the bounds of a view's super view, so if you have a button that sits outside its superview's bounds, it won't get any touches.

For a quick test, try setting your view's background color and see if the view does properly extend to the bottom of the screen.

It turns out my view's bounds were set to the full screen, but the frame was not. By explicitly setting the frame, I was able to get this working.

If your apps, on your app screen, will not respond to touch, just change the orientation. I kept it in landscape mode most of the time, they stopped responding, when I rotated the ipad they started responding right away.

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