简体   繁体   English

iPhone5和iOS6组合会产生显示问题

[英]iPhone5 and iOS6 combination creates display issues

My cocos2D app, Forever Afloat, works perfectly fine with all the combinations until you get to iPhone 5 and iOS6! 我的cocos2D应用程序Forever Afloat在所有组合中都可以完美运行,直到您使用iPhone 5和iOS6! The app display is all stretched out so that you see only the lower left corner and the rest is off the screen. 该应用程序的显示全部展开,因此您只能看到左下角,其余的不在屏幕上。 Only until you force it to autorotate, does the app begin to display at proper dimensions... 只有在强制其自动旋转之前,该应用程序才开始以适当的尺寸显示...

My problems can also be found at this problem cocos2D iOS 6 retina display 我的问题也可以在此问题发现cocos2D iOS 6视网膜显示器
They asked the same question. 他们问了同样的问题。 Any solutions? 有什么办法吗? Thanks! 谢谢!

cocos2d使用image-hd.png而不是image@2x.png的图像检查是否使用@ 2x替换为hd

Use new version of cocos2d and here is image extension. 使用新版本的cocos2d,这是图像扩展。

-wide.png for iphone 5
-widehd.png for iPhone 5 HD
-hd.png for iPhone HD 
-ipad.png for iPad. 
-ipadhd.png for iPad HD.

There were some issues within the AppDelegate regarding the order of calls that made the display all strange. AppDelegate内存在一些与调用顺序有关的问题,这些问题导致显示异常。 All I did was move the initalization method to the top and it fixed everything! 我所做的就是将初始化方法移到顶部,并固定了所有内容!

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

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