Orienting iOS splash image to landscape/portrait according to launch orientation

Joey picture Joey · Apr 25, 2011 · Viewed 18.5k times · Source

I have an app that can launch in portrait or landscape. I'd like the Default.png file (the splash image that appears when the app launches) to show the image in the correct orientation so I expect I'd need to use two different images (different dimensions). I don't know how to make the app pick which image to use based on its launching orientation, however. Is this possible? Is there any way to know what orientation the app is launching in (before the splash is shown) and then pick the correct image, or do I simply have to settle with either having the image rotated sideways in one of the orientations or having an image that is indistinguishable at 90 degree rotations?

Answer

Chris Kooken picture Chris Kooken · Apr 25, 2011

You can name your start up images specifically for the orientation and each one will be displayed for that orientation

  1. Default-Portrait.png
  2. Default-PortraitUpsideDown.png
  3. Default-Landscape.png
  4. Default-LandscapeLeft.png
  5. Default-LandscapeRight.png