iOS6 iPhone 5 nothing clickable at bottom of screen

邮差的信 提交于 2019-11-28 07:37:26

I had the same problem... http://anthonyprato.com/2012/09/20/iphone-5-problem-with-touches-at-the-bottom-of-the-screen/

Your UIWindow created in a nib needs "Full Screen at Launch" checked.

If you don't have MainWindow.xib in your project (and most newer projects don't), then you need one extra line in the applicationDidFinishLaunching of your app delegate:

- (void)applicationDidFinishLaunching:(UIApplication *)application {

    [window setFrame:[[UIScreen mainScreen] bounds]];
    ...
}

I put it in the beginning of the method. Worked like a charm.

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