简体   繁体   English

奇怪的iPhone5信箱

[英]Strange iPhone5 letterboxing

I have just installed Xcode 4.6.3 to test my OpenGL game (which was developed in Xcode 3) on Retina 4" simulator, and I have got two black bars on the screen's top and bottom. 我刚刚安装了Xcode 4.6.3,以在Retina 4“模拟器上测试我的OpenGL游戏(由Xcode 3开发),并且屏幕的顶部和底部都有两个黑条。

I have added a Default-568h@2x.png image file with dimension of 640x1136 to my project, when I am testing on the iphone simulator, the Default image is displayed correctly with no bars at all, but once the game starts, the top bar is moved to the bottom of the screen, now I have a sum of two bars at the bottom and no bar at all at the top. 我在项目中添加了尺寸为640x1136的Default-568h@2x.png图像文件,当我在iphone模拟器上进行测试时,默认图像正确显示,没有任何条形,但是一旦游戏开始,顶部栏被移到屏幕的底部,现在我在底部总共有两个栏,而在顶部没有任何栏。

I have done some google search but it seems no one had the same problem before, I am getting this result on the iPhone simulator and have got no iphone5 to confirm this would happen in real device... 我已经做了一些谷歌搜索,但之前似乎没有人遇到过同样的问题,我在iPhone模拟器上得到了这个结果,也没有iphone5确认这将在真实设备中发生...

I would really appreciate someone could help on this. 我真的很感谢有人可以为此提供帮助。 Thank you. 谢谢。

I was having a similar problem and the solution I found was to stop using the asset catalog for the Launch Images. 我遇到了类似的问题,发现的解决方案是停止将资产目录用于启动图像。 That allowed it to revert to using the properly named files it was looking for. 这样一来,它就可以还原为使用要查找的正确命名的文件。

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

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