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

cthesky

macrumors member
Original poster
Aug 21, 2011
91
0
Hi all,

I have some views in my Iphone Application. But I need set only one of the view (for example: ThirdViewController) can autorotate to interface orientation. So, I set shouldAutorotateToInterfaceOrientation to YES in the ThirdViewController, but it seems not work ... So, I try set shouldAutorotateToInterfaceOrientation to YES in root view. It seems can work but is all views in my application become can autorotate to interface orientation. But what I need is just one view (ThirdViewController) can be autorotate. This ThirdViewController is a UINavigationController and I display it through presentModalViewController when press a button.

Anyone have any ideas to do this? Am I doing something wrong? Any comments and ideas are welcome.

Thanks a lot. :)
 
I have had some issues with that too, I think there is some topic in the HIG about that. that's it's just not allowed..
That if you decide to do some views landscape too, that you need to do it for all.
But I think this has changed, so don't count completely on it.
 
If one of your view controllers supports landscape orientation, they all must. At least, that's how it works in a tab bar controllers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.