Asks the delegate for the interface orientations to use for the view controllers in the specified window.
- iOS 6.0+
- Mac Catalyst 13.0+
Your singleton app object.
The window whose interface orientations you want to retrieve.
A bit mask of the
UIInterface constants that indicate the orientations to use for the view controllers.
This method returns the total set of interface orientations supported by the app. When determining whether to rotate a particular view controller, the orientations returned by this method are intersected with the orientations supported by the root view controller or topmost presented view controller. The app and view controller must agree before the rotation is allowed.
If you do not implement this method, the app uses the values in the
UIInterface key of the app’s
Info as the default interface orientations.