什么对象负责分配UIViewController旋转方法调用,即:
shouldAutorotateToInterfaceOrientation:willRotateToInterfaceOrientation:duration:willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:didRotateFromInterfaceOrientation:
我想它是UIApplication(但可能是 AppDelegate 或 UIWindow)。
下一个问题是对象如何知道与哪个UIViewController对话?
它如何知道哪个UIViewController视图作为窗口的子视图?
是否有您可以发送的消息或您可以设置的(某个对象的)属性来设置UIViewController应用程序的“活动”?