I feel like my question is answered in iOS6: supportedInterfaceOrientations not working (is invoked but the interface still rotates), but I’m not advanced enough to understand how to implement the responses.
I’m writing a tabbed application using iOS6, and I want one of the view controllers to rotate and the rest of them to stay put. I understand that I need to use supportedInterfaceOrientations, but I don’t know how or where to use it, and I haven’t been able to decipher the Apple Documentation about it. The UITabBarController is set as the root view controller in AppDelegate, if that’s relevant.
Thanks in advance for the help.
Implement
supportedInterfaceOrientationsin your UITabBarController subclass. Here’s an example in which the first View Controller won’t autorotate out of portrait:However, if you switch to View Controller #2 (index 1), rotate to landscape, and switch back to View Controller #1, you’ll see View Controller #1 displaying in landscape. I’m looking for a solution.