UIInterfaceOrientationMask 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
值的枚举,这些值指定用户界面的可用方向。
此枚举支持其成员值的按位组合。
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIInterfaceOrientationMask
type UIInterfaceOrientationMask =
- 继承
-
UIInterfaceOrientationMask
- 属性
字段
All | 30 | UIViewController 支持所有接口方向。 |
AllButUpsideDown | 26 | UIViewController 支持除倒置纵向之外的所有方向。 |
Landscape | 24 | UIViewController 支持横向向左和向右横向。 |
LandscapeLeft | 16 | UIViewController 支持横向向左方向。 |
LandscapeRight | 8 | UIViewController 支持横向向右方向。 |
Portrait | 2 | 长边是垂直的。 |
PortraitUpsideDown | 4 | UIViewController 支持纵向倒置。 |
注解
可能 UIViewController 支持多个 UIInterfaceOrientation。 此值从 GetSupportedInterfaceOrientations() 和 SupportedInterfaceOrientationsForWindow(UIWindow)返回,指定应用程序支持的方向。
适用于
另请参阅
- UIInterfaceOrientation
- GetSupportedInterfaceOrientations()
- <xref:UIKit.UIApplication.SupportedInterfaceOrientationsForWindow>