UIViewController rotate methods
- by Corey Floyd
What object is responsible for dipatching the UIViewController rotation method calls, i.e:
– shouldAutorotateToInterfaceOrientation:
– willRotateToInterfaceOrientation:duration:
– willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
– willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
– didRotateFromInterfaceOrientation:
I imagine it is UIApplication (but maybe the AppDelegate or UIWindow).
The next question, is how does the object know which UIViewController to talk to?
How does it know which UIViewController has its view as the subview of the window?
Is there a message you can send or a property you can set (of some object) that sets the "Active" UIViewController for the app?