I have a UITabBar
application with embedded UINavigation
for some of the views. On one specific navigationview I am displaying graphs/charts and it wou
You are right. In tab bar applications it is not the shouldAutorotateToInterfaceOrientation
: method of the individual view controllers being called. Only the tab bar controller's shouldAutorotateToInterfaceOrientation
is called to determine whether and how the views can be oriented.
However, the individual view controllers should implement shouldAutorotateToInterfaceOrientation
accordingly anyway. Those methods are still used to determine the orientation of animation effects when pushing or pulling a view controller.
I never tried the following myself: You could try subclassing the tab bar controller and respond to shouldAutorotateToInterfaceOrientation
accordingly depending on which view is currently shown to the user. But I fear that Apple has good reasons for forcing us to support the same orientations for all views within a tab bar app.