简体   繁体   English

iPhone 5,iOS 6 Simulator上的屏幕无响应

[英]Unresponsive screen on iPhone 5, iOS 6 Simulator

I have added a Default-568h@2x.png to my app and it looks fine on Retina 4 inch simulator. 我已将Default-568h@2x.png添加到我的应用中,在Retina 4英寸模拟器上看起来还不错。 However there is about 170 pixel area on the bottom of the screen where no response to tapping and/or touching. 但是,屏幕底部大约有170个像素区域,其中对点击和/或触摸无响应。 Do you have the same problem? 你有同样的问题吗? Any idea how to solve this? 任何想法如何解决这个问题?

Assuming you are using MainWindow.nib, click the root VC and select "full screen at launch". 假设您正在使用MainWindow.nib,请单击根VC,然后选择“启动时全屏显示”。

Alternatively, in -applicationDidFinishLaunching:withOptions: window.frame = [UIScreen mainScreen].bounds (or window.frame = window.screen.bounds ). 或者,在-applicationDidFinishLaunching:withOptions: window.frame = [UIScreen mainScreen].bounds (或window.frame = window.screen.bounds )。 This might be preferable if you have lots of nibs which you'd rather not touch (eg if you localize into 10 languages). 如果您不想触摸很多笔尖(例如,如果您本地化为10种语言),则这可能是更可取的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM