When you want to flip,
First, the response method is as follows:
-(BOOL) shouldAutorotateToInterfAceOrientation: (UIInterfaceOrientation) interfaceOrientation.
Return YES supports flip, and NO supports flip.
Then
-(Void) willRotateToInterfaceOriEntation :( UIInterfaceOrientation) toInterfaceOrientationduration :( NSTimeInterval) duration
Called. This method occurs before the flip starts. It is generally used to disable some controls or stop some ongoing activities, such as stopping video playback.
Then
-(Void) willAnimateRotationToIntErfaceOrientation :( UIInterfaceOrientation) toInterfaceOrientationduration :( NSTimeInterval) duration.
This method is generally used to customize the position and size of each control after the flip. Two other methods can be used instead: willAnimateFirstHalfOfRoTationToInterfaceOrientaTion: duration: AndWillAnimateSecondHalfOfROtationFromInterfaceOrieNtation: duration:
The last call is
-(Void) didRotateFromInterfaceOrIentation :( UIInterfaceOrientation) fromInterfaceOrientation Method.
This method occurs after the entire flip is complete. This function is generally used to re-enable some controls or to pause the activity before turning over, such as resuming video playback.