- toInterfaceOrientation
- The new orientation.
- duration
- The duration of the first half of the rotation animation, in seconds.
Two-step rotations are deprecated and application developers should instead use single-step rotations (see UIViewController.WillAnimateRotation ).
When this method is called, the UIViewController.InterfaceOrientation is set to the old orientation.