UIViewController rotate methods

Posted by Corey Floyd on Stack Overflow See other posts from Stack Overflow or by Corey Floyd
Published on 2009-02-13T23:50:14Z Indexed on 2010/03/25 4:23 UTC
Read the original article Hit count: 439

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk