I am developing a game which works only in landscape mode. When I import a launch image (Default.png) into my xcode proj and run it, the image appears in portrait mode and then the view starts in landscape mode. How can I make my splash/launch image be displayed in landscape mode only?
2 Answers
First thing is no one is gonna know from outside the application that application is gonna run in portrait or landscape.
If at all you still want to view the splash screen in landscape mode you have to design the image in such a way as we cannot change the behaviour of the splash screen.
Instead of designing the image as 320X480
, design it as 480X320
and your problem will get solved.
hAPPY cODING...
Always create 320x480 and 640x960 sized pictures. Just name them Default.png and [email protected]. As Michael Kessler notes, to have them appear in landscape, you have to rotate the graphics in your gfx editor.
I quote Apple docs as they look as of now:
iPhone and iPod touch Portrait 320 x 480 pixels, 640 x 960 pixels (@2x) Landscape Not supported
iPad Portrait 768 x 1004 pixels, 1536 x 2008 pixels (@2x) Landscape 1024 x 748 pixels, 2048 x 1496 pixels (@2x)
So you can see that landscape orientation of images are not supported for iPhone/iPod.