Hi,
I have added both images. Default-Portrait.png and Default-Landscape.png. But whenever I start my app, only the portrait default image is displayed irrespective of the orientation.
Why is this happening?
Hi,
I have added both images. Default-Portrait.png and Default-Landscape.png. But whenever I start my app, only the portrait default image is displayed irrespective of the orientation.
Why is this happening?
Did you add code to swap out the images based on orientation? I am guessing the app just is not going to know what picture you want unless you tell it.
UIInterfaceOrientation param
I had the same problem and solved it by adding the following to the Info.plist file (from Xcode):
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>