1

my app's orientation is in landscape right. and i want to set default.png image which is loaded for few seconds at the start of my app. right now i have added default.png in my app. but its showing me image in portrait mode. what should i do ?

Devang
  • 11,258
  • 13
  • 62
  • 100

1 Answers1

3

Use Default-Portrait.png and Default-Landscape.png as image names in iPad.

Default.png only works with one image for both orientations in iPhone

And add below in info.plist file ,if you do'nt have

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>

Look at the article Default.png and landscape mode

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76