UIInterfaceOrientationExtensions 类

定义

UIInterfaceOrientation 枚举的扩展方法。

public static class UIInterfaceOrientationExtensions
type UIInterfaceOrientationExtensions = class
继承
UIInterfaceOrientationExtensions

注解

此类中的扩展方法提供了一些方便的方法,可用于 UIInterfaceOrientation 类型的枚举。

方法

IsLandscape(UIInterfaceOrientation)

确定起源是否为横向值之一。

IsPortrait(UIInterfaceOrientation)

确定方向是否为纵向方向之一。

适用于