- toInterfaceOrientation
- The new interface orientation.
- duration
- The duration of the rotation, in seconds.
Application developers may override this method to disable expensive drawing operations, media playback, or other resource-intensive operations during a user interface rotation.
When this method is called, the UIViewController.InterfaceOrientation is set to the original UIKit.UIInterfaceOrientation.