UIViewController.ShouldAutorotate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Turns auto-rotation on or off.
[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
Returns
true
if the UIViewController should auto-rotate, false
otherwise.
- Attributes