IPhone: prohibit viewing with rotation
I am using UITabBarController with 4 views. The first of these 4 views should be able to rotate, while the other three should not. And now the problem is that when you have a tab bar controller, you have to set all used views to rotatable (i.e. return TRUE in shouldAutorotateToInterfaceOrientation).
So now my question is, can I prevent the three views from rotating even if the method shouldAutorotateToInterfaceOrientation
returns TRUE?
+2
a source to share
1 answer
a bit late, but maybe one could solve it by saying something like this in all shouldAutorotate methods ...
if (firstTabBarIsShowing) {
return YES; //enable rotation if first tab bar is showing its content
} else {
return NO; //if other views are showing, don't rotate anything
}
then make sure the view starts from the first tab bar. perhaps it might deceive him.
+1
a source to share