Reputation: 749
i created xib with UITabBarController in that i have 3 navigationControllers for 3 view controllers.
my problem is when i rotate shouldAutorotateToInterfaceOrientation is not calling.
can any one help me how to use shouldAutorotateToInterfaceOrientation in UITabBarContoller views.
Thanks in advance...
Upvotes: 1
Views: 486
Reputation: 2514
In the case of a UITabBarController, if you want the view to rotate you have return YES from the method -shouldAutorotateToInterfaceOrientation
in all of your view controllers, otherwise it won't rotate.
Upvotes: 3