Rotation of a single UIViewController in a UITabBarController

Posted by burki on Stack Overflow See other posts from Stack Overflow or by burki
Published on 2010-04-26T15:51:09Z Indexed on 2010/04/26 15:53 UTC
Read the original article Hit count: 474

Hi! I have a UITabBarController with four UINavigationControllers. Well, I want to enable the rotation just for one of the four UIViewControllers. According to Apple's doc you shouldn't subclass UITabBarController, so I don't wanna do that. All UIViewControllers should support the same orientations that it works, but that's not what I want. How can the single UIViewController, which should support the rotation, detect that the device has changed its orientation? Because unless all the UIViewControllers added to the UITabBarControllers support the same orientation, the methods of the UIViewController for managing the rotation aren't called.

I've been searching now for a while, but I haven't already found a pleasant answer. I guess a lot of developers wonder how to manage that. I already thank you for your answer.

© Stack Overflow or respective owner

Related posts about uiviewcontroller

Related posts about uitabbarcontroller