Rotation of a single UIViewController in a UITabBarController
- by burki
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.