UIInterfaceOrientationMask Enum


An enumeration of values that specify the available orientations of the user interface.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIInterfaceOrientationMask
type UIInterfaceOrientationMask = 


All 30

The UIViewController supports all interface orientations.

AllButUpsideDown 26

The UIViewController supports all orientations except upside-down portrait.

Landscape 24

The UIViewController supports both landscape-left and landscape-right orientations.

LandscapeLeft 16

The UIViewController supports landscape-left orientation.

LandscapeRight 8

The UIViewController supports landscape-right orientation.

Portrait 2

The long side is vertical.

PortraitUpsideDown 4

The UIViewController supports upside-down portrait orientation.


A UIViewController may support more than one UIInterfaceOrientation. This value, returned from GetSupportedInterfaceOrientations() and SupportedInterfaceOrientationsForWindow(UIWindow), specifies which orientations are supported by the application.

Applies to

See also