0

I'm working on this iPhone app, whose orientation works all fine except first screen. The first screen also works fine if the device is in portrait orientation, but not for landscape orientation.

Interestingly, if I rotate device at the first screen, it also adjust well.

The problem looks to me is that the app always assumes the device is in portrait orientation, so the first screen is always shown in portrait orientation even if the device is in landscape orientation.

I tried to add willAnimateRotationToInterfaceOrientation at the end of executing first screen, but didn't work. The willAnimateRotationToInterfaceOrientation method which calls the rotating function (the one that works well for other screens after first screen) seems to think there's no need to adjust subviews. Since the rotating function works very well for later screens, I guess I probably missed something (maybe outside of the code). Wonder if someone can point it out for me.Between , I specified "initial launch orientation" in plist to landscape, it didn't work either.

Thanks, Please help Me

Deepesh
  • 8,065
  • 3
  • 28
  • 45
Tony Xu
  • 3,031
  • 4
  • 32
  • 43
  • possible duplicate: http://stackoverflow.com/questions/14516992/how-to-get-default-landscapeleft-orientation-in-ios5 – Jack Jan 28 '13 at 05:12
  • check my SO answer http://stackoverflow.com/questions/12933089/i-want-to-make-my-appliaction-only-in-landscape-orientation-in-ios-both-ios-5-a – Deepesh Jan 28 '13 at 05:21

1 Answers1

1

For iPhone & iPod, launch image(Default) does not support landscape orientation.

Read "App Launch (Default) Images" section from iOS App Programming Guide

Rahul Wakade
  • 4,765
  • 2
  • 23
  • 25