Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
my app is in landscape, when i call presentModalViewController:animated: the device switches to portrait and doesn't switch back

is it possible to present a modal view in landscape and keep the device in landscape mode?
 
my app is in landscape, when i call presentModalViewController:animated: the device switches to portrait and doesn't switch back

is it possible to present a modal view in landscape and keep the device in landscape mode?

What class of View Controller are you presenting modally? Is that class designed to display in landscape mode?
 
Also make sure the view controller for the modal view has it's shouldAutorotateToInterfaceOrientation: set correctly.

yeah, woops, only did that once in one view controller unrelated to it....

slightly embarrassing....
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.