共用方式為


UIDeviceOrientation 列舉

定義

裝置方向的列舉。

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIDeviceOrientation
type UIDeviceOrientation = 
繼承
UIDeviceOrientation
屬性

欄位

FaceDown 6

裝置正向下。

FaceUp 5

裝置正向上。

LandscapeLeft 3

裝置底部指向左側。

LandscapeRight 4

裝置底部指向右側。

Portrait 1

裝置底部指向下方。

PortraitUpsideDown 2

裝置底部指向上。

Unknown 0

無法判斷裝置的方向。

備註

目前的裝置方向。

適用於