How iPhone 5 + iOS6 will decide if an app must be run in letterbox mode

泪湿孤枕 提交于 2019-12-17 04:33:07

问题


How the iOS6 decides if the app must be run in letterbox/compatibility mode on iPhone 5? Is this a build settings parameter (like the "Targeted device family")? Or all apps build against the latest SDK MUST support iPhone 5 screen size? Or the app will be run in letterbox mode is there is not a 1136x640 Default.png splashscreen ? Or what else?


回答1:


The app will run in letterbox mode if there is no 1136x640 Default.png splashscreen.

The image must be called Default-568h@2x.png (if your splashscreen is Default.png in your Info.plist)




回答2:


You will need to add IOS8 specific splash screen too. In my case i had 1136x640 Default.png splashscreen but you need to select launch screen and select orientation as shown below

This worked for me. Hope this helps :)




回答3:


I didn't try adding the splashscreen (special because I didn't have any image by the time), but instead just went to the

Target General settings -> App Icons and Launch Images -> Launch Images Source

and created a new catalog. Didn't add any image to it, just run the application and the black bars were gone.

Hope this helps anyone.



来源:https://stackoverflow.com/questions/12404699/how-iphone-5-ios6-will-decide-if-an-app-must-be-run-in-letterbox-mode

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