1016-03-Parent and Child controllers ----- transfer of screen rotation events, 1016-03 ------
1. By default, all pointers in ARC are strong pointers.
2. when you set the relationship between two controllers to the parent-child controller, add the view of controller B to the view of Controller, if A and B are not related to the parent-child controller, when the screen is rotated, the B controller cannot monitor the rotation of the screen. Only Controller A can monitor screen rotation.
3. Screen rotation events are triggered by windows. The window will pass the event to its root controller.
/** Listen for rotation */
-(Void) willRotateToInterfaceOrientation :( UIInterfaceOrientation) toInterfaceOrientation duration :( NSTimeInterval) duration
{
NSLog (@ "=========== willRotateToInterfaceOrientation ==== ");
}
-(Void) didRotateFromInterfaceOrientation :( UIInterfaceOrientation) fromInterfaceOrientation
{
NSLog (@ "========== didRotateFromInterfaceOrientation ==== ");
}
_____________________________________________________________________________________
_____________________________________________________________________________________