I have a couple of views all managed by their own controllers, some of them nested. I'd like to support rotation, some views are allowed to rotate to any orientation, some only to one of the portrait orientations (normal or upside down).
In my case, I need to implement -shouldAutorotateToInterfaceOrientation in my rootController to allow rotation for any of the subviews. The problem is, the rootController does not know if it should allow rotation because it needs to ask this to the subviews controller.
In my rootController's -shouldAutorotateToInterfaceOrientation I could do something like:
return [self.settingsController shouldAutorotateToInterfaceOrientation];
to provide the necessary logic of rotation but would this be the correct way to do this? I did read apple's doc about rotation, but this is not really adressed.