UIInterfaceOrientationMask
This page covers the description of the UIInterfaceOrientationMask enumeration
The constants of UIInterfaceOrientationMask enumeration identify the application's orientation (iOS platform).
1
const UIInterfaceOrientationMask = {
2
Portrait: 0,
3
LandscapeLeft: 1,
4
LandscapeRight: 2,
5
PortraitUpsideDown: 3,
6
Landscape: 4,
7
All: 5,
8
AllButUpsideDown: 6,
9
}
Copied!
Constant
Description
Portrait
The view controller supports a portrait interface orientation
LandscapeLeft
The view controller supports a landscape-left interface orientation
LandscapeRight
The view controller supports a landscape-right interface orientation
PortraitUpsideDown
The view controller supports an upside-down portrait interface orientation
Landscape
The view controller supports both landscape-left and landscape-right interface orientation
All
The view controller supports all interface orientations
AllButUpsideDown
The view controller supports all but the upside-down portrait interface orientation
For more information, please see the official Apple documentation.
Last modified 1mo ago
Copy link