UIViewController.ShouldAutorotate Method

Definition

Turns auto-rotation on or off.

C#
[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();

Returns

true if the UIViewController should auto-rotate, false otherwise.

Attributes

Applies to

Producto Versiones
Xamarin iOS SDK 12