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 ?
Asked
Active
Viewed 2,262 times
1 Answers
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
-
info.plist ? looks something different !! can you please give me some step ? – Devang Apr 18 '11 at 09:17
-
@Devang: Open "info.plist" in "Dashcode", Go to "info.plist" in your project folder structure, Right click on "info.plist" file then click on "Open With" and choose "DashCode" then cop/paste the above content .. – Jhaliya - Praveen Sharma Apr 18 '11 at 09:28
-
@Steven Kramer : Do you want it for iPad ? – Jhaliya - Praveen Sharma Apr 18 '11 at 15:09
-
No, just curious! Last I heard, the `Default-Landscape.png` etcetera was not supported on iPhone. – Steven Kramer Apr 18 '11 at 15:29
-
@Steven Kramer:for iPad ... will have to use UISupportedInterfaceOrientations~ipad instead of UISupportedInterfaceOrientations. – Jhaliya - Praveen Sharma Apr 18 '11 at 16:36
-
Okay, so you are saying that "Default-Landscape.png" is supported on iPhone? Thanks! – Steven Kramer Apr 18 '11 at 17:05
-
@Steven Kramer : No dude "Default-Landscape.png" supported in iPad only not iPhone .. See SO post http://stackoverflow.com/questions/2634898/splash-screen-for-universal-application-for-ipad-and-iphone – Jhaliya - Praveen Sharma Apr 18 '11 at 17:08