Returns the default set of interface orientations to use for the view controllers in the specified window.
- iOS 6.0+
The window whose default interface orientations you want to retrieve.
A bit mask specifying which orientations are supported. See
UIInterface for valid bit-mask values. The value returned by this method must not be
Starting in iOS 8, you should employ the
UITrait APIs, and size class properties as used in those APIs, instead of using this method or otherwise writing your app in terms of interface orientation.
This method returns the default interface orientations for the app. These orientations are used only for view controllers that do not specify their own. If your app delegate implements the
application(_: method, the system does not call this method.
The default implementation of this method returns the app’s default set of supported interface orientations, as you define them in the UISupportedInterfaceOrientations key of the
Info file in your Xcode project. If the file does not contain that key, this method returns all interface orientations for the iPad idiom and returns all interface orientations except the portrait upside-down orientation for the iPhone idiom.