Edit

Share via


UIViewController.AttemptRotationToDeviceOrientation Method

Definition

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>