UIDeviceOrientation 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
裝置方向的列舉。
[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 | 無法判斷裝置的方向。 |
備註
目前的裝置方向。