Unresponsive screen on iPhone 5, iOS 6 Simulator

孤人 提交于 2019-12-08 03:10:33

问题


I have added a Default-568h@2x.png to my app and it looks fine on Retina 4 inch simulator. However there is about 170 pixel area on the bottom of the screen where no response to tapping and/or touching. Do you have the same problem? Any idea how to solve this?


回答1:


Assuming you are using MainWindow.nib, click the root VC and select "full screen at launch".

Alternatively, in -applicationDidFinishLaunching:withOptions: window.frame = [UIScreen mainScreen].bounds (or window.frame = window.screen.bounds). This might be preferable if you have lots of nibs which you'd rather not touch (e.g. if you localize into 10 languages).



来源:https://stackoverflow.com/questions/12547047/unresponsive-screen-on-iphone-5-ios-6-simulator

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