1

I am developing an application that is in landscape mode. I have Default.png with size 480x320. But still when it launches the default image comes in portrait mode not in landscape mode.

However it should come according to the device oreintation.

If i take default.png with same size in allready rotated. then it comes as it was in rotated mode.

However it should come according to the device oreintation.

Please help me

MathieuF
  • 3,130
  • 5
  • 31
  • 34
Ajeet
  • 11
  • 1
  • 2
  • possible duplicate of [How to put Default.png in landscape mode?](http://stackoverflow.com/questions/1973805/how-to-put-default-png-in-landscape-mode) – Brad Larson Nov 22 '10 at 18:22

5 Answers5

1

There is an answer to question How to put Default.png in landscape mode? by @brentford that should help you.

There is also an article by John Muchow which outlines a different way one way to accomplish what you want to do.

Community
  • 1
  • 1
Robert Höglund
  • 10,010
  • 13
  • 53
  • 70
1

Taken straight from here

"In iOS 3.2 and later, an iPad application can provide different launch images depending on whether the device is in a portrait or landscape configuration. To specify a launch image for a different orientation, you must add a special modifier string to the base file name of your standard launch image. Thus, the format of each file name becomes the following:

[basename][orientation_modifier][scale_modifier][device_modifier].png"

So in your example you could have:

Default-Landscape.png

Default-Portrait.png

(Default-Landscape@2x.png for iphone 4 and Default-Landscape~ipad.png for ipad and so forth...)

both have to be 320x480 and you'll have to ensure that your app's Info.plist contains all 4 UISupportedOrientation values (UIOrientationPortrait, UIOrientationLandscapeLeft etc etc). But see my above link for a better explanation.

Luke
  • 3,665
  • 1
  • 19
  • 39
0

I believe the splashscreen is loaded without checking for orientation.

Arjan Einbu
  • 13,543
  • 2
  • 56
  • 59
0

Try to set UIInterfaceOrientation key in the info.plist file to UIInterfaceOrientationLandscapeLeft (iPhone home button will be on the left) or UIInterfaceOrientationLandscapeRight (home button on right).

MathieuF
  • 3,130
  • 5
  • 31
  • 34
0

See this post:

How do I detect orientation on app launch for splash screen animation on iPad!

Community
  • 1
  • 1
Bourne
  • 10,094
  • 5
  • 24
  • 51