2

I have two "pages" in my app. one which should rotate between the 2 landscape modes but not allow portrait mode and the other which should rotate between the 2 portrait modes but not allow landscape mode.

How can one set this up so that the orientations are limited correctly when segueing between the two views?

Wesley Smith
  • 19,401
  • 22
  • 85
  • 133

1 Answers1

0

I will write my own segue if I were you and set the orientation of the destination view in the perform method of your custom UIStoryboardSegue and will also set the orientation i want to allow in the shouldAutorotateToInterfaceOrientationof the destination view controller. You can have a look to this question related to custom segue I asked some time ago to get an idea of how to implement custom segue.

Community
  • 1
  • 1
tiguero
  • 11,477
  • 5
  • 43
  • 61
  • Perfect! I just made a custom segue to do a horizontal cover transition so im a little familiar with that process. Thanks for pointing me in the right direction. – Wesley Smith Oct 23 '12 at 03:18