UIViewController.AttemptRotationToDeviceOrientation 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.
Programmatically triggers rotation of views.
[Foundation.Export("attemptRotationToDeviceOrientation")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AttemptRotationToDeviceOrientation ();
static member AttemptRotationToDeviceOrientation : unit -> unit
- Attributes
Remarks
If ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) returns false
, this method can be used to programmatically trigger view rotation.
Applies to
See also
- <xref:UIKit.UIViewController.WillRotate>
- <xref:UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation>