Steve Gear
Steve Gear

Reputation: 749

Orientation issue with UITabBarController iOS

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

Answers (1)

mAc
mAc

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

Related Questions