UIDeviceOrientationExtensions 类

定义

UIDeviceOrientation 类的扩展方法。

public static class UIDeviceOrientationExtensions
type UIDeviceOrientationExtensions = class
继承
UIDeviceOrientationExtensions

方法

IsFlat(UIDeviceOrientation)

true如果设备正靠在背面或脸上,则返回 。

IsLandscape(UIDeviceOrientation)

true如果设备的一个长边缘最低,则返回 。

IsPortrait(UIDeviceOrientation)

true如果短边之一为最低值,则返回 。

适用于