views:

38

answers:

0

I've got a UITabBarController whose view is rooted to a UIWindow. The first three view controllers are derived from base class A (which inherits UIViewController). The latter two view controllers are derived base class B (which inherits UITableViewController) for 5 view controllers total.

The first three view controllers will not rotate, while the latter two will do so. One would think that shouldAutorotateToOrientation is not being called on the first controller type, but it is.

When the device rotates and a view controller of type B is active, shouldAutorotateToOrientation gets called. When a view controller of type A is active, the selector doesn't get called upon rotation.

Oddly, if I rotate while type B controllers are active, and then switch to those of type A, shouldAutorotateToOrientation does get called and the view is correctly rotated to the new orientation.

Anyone know why the first three view controllers are not dynamically rotating, but correctly being rotated when switched to?