问题
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