UIViewController.ShouldAutorotate 方法

定义

打开或关闭自动旋转。

[Foundation.Export("shouldAutorotate")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldAutorotate ();
abstract member ShouldAutorotate : unit -> bool
override this.ShouldAutorotate : unit -> bool

返回

trueUIViewController如果 应自动旋转,则为 ;false否则为 。

属性

适用于