Modifier

Partager via


UIInterfaceOrientation Enum

Definition

An enumeration of values that specify the orientation of the user interface.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIInterfaceOrientation
type UIInterfaceOrientation = 
Inheritance
UIInterfaceOrientation
Attributes

Fields

Name Value Description
Unknown 0

The orientation is unknown.

Portrait 1

The home button is at the bottom.

PortraitUpsideDown 2

The home button is at the top.

LandscapeRight 3

The home button is to the right.

LandscapeLeft 4

The home button is to the left.

Remarks

The UIInterfaceOrientation represents the rotation of the user interface and, in portrait modes, is the opposite of the Orientation property. For instance, if the device is rotated 90 degrees clockwise from normal portrait mode such that the home button is to the left, the InterfaceOrientation property will be LandscapeLeft but the Orientation property will be LandscapeRight.

Applies to