My app has a hierarchy set up like this:
UITabBarCOntroller
|
UINavigationController1
| |
| UITableViewController1
| |
| UIViewController1
| |
| UIViewController2
|
UINavigationController2
|
UITableViewController2
|
UIViewController3
I want to rotate only UIViewController2 and the other ViewControllers remain UIInterfaceOrientationPortrait. How to do this?
Just present the UIViewController2 as a modal view controller. This way you can rotate
UIViewControllerindependently from the parentUIViewControllers. You can find source code examples here.