Splash screen is landscape although the whole game is in the portrait mode. SpriteBuilder + cocos2d

↘锁芯ラ 提交于 2019-12-11 17:52:12

问题


When I run SpriteBuilder cocos2d project in Xcode Simulator, splash screen is landscape and the whole game after it is in the portrait mode, as I set it in SpriteBuilder project settings. Mode is set portrait in the .plist file, and after I replaced default portrait image with my own and deleted default landscape images, it just shows my portrait splash image in the landscape mode. How to fix it?


回答1:


I assume your image files are named according to the answer in this question.

Try cleaning your project and deleting the app from the simulator/device. I have found Xcode sometimes likes to cache files in the simulator/device.




回答2:


The .plist, I checked, was actually a .plist file generated by cocos2d framework or SpriteBuilder. I also must change Supported interface orientationsin the native Xcode .plist file - I just didn't see it and thought, that another one .plist file is the only one, that can be.



来源:https://stackoverflow.com/questions/24980453/splash-screen-is-landscape-although-the-whole-game-is-in-the-portrait-mode-spri

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