Uiinterfaceorientation direction enumeration:
Uiinterfaceorientationportrait // The home is alive.
Uiinterfaceorientationportraitupsidedown // The home is alive.
Uiinterfaceorientationlandscapeleft // The home is left
Uiinterfaceorientationlandscaperight // The home is located on the right
Functions triggered when the screen is rotated: // When the rotation direction changes -( Void ) Willanimaterotationtointerfaceorientation :( uiinterfaceorientation) tointerfaceorientation duration :( nstimeinterval) Duration {} // Automatically called before the first half of a view rotation animation occurs -( Void ) Willanimatefirsthalfofrotationtointerfaceorientation :( uiinterfaceorientation) tointerfaceorientation duration :( nstimeinterval) Duration {} // Automatically called before the last half of a view rotation animation occurs -( Void ) Willanimatesecondhalfofrotationfrominterfaceorientation :( uiinterfaceorientation) frominterfaceorientation duration :( nstimeinterval) Duration {} // Automatically called before view Rotation -( Void ) Willrotatetointerfaceorientation :( uiinterfaceorientation) tointerfaceorientation duration :( nstimeinterval) Duration {} // Automatically called after view Rotation -( Void ) Didrotatefrominterfaceorientation :( uiinterfaceorientation) frominterfaceorientation {} // Automatically called when the first half of a view rotation animation occurs -( Void ) Didanimatefirsthalfofrotationtointerfaceorientation :( uiinterfaceorientation) tointerfaceorientation {}