UIKit.UIViewController.AttemptRotationToDeviceOrientation Method
Programmatically triggers rotation of views.

Syntax

[Foundation.Export("attemptRotationToDeviceOrientation")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public static void AttemptRotationToDeviceOrientation ()

See Also

UIViewController.WillRotate
UIViewController.ShouldAutorotateToInterfaceOrientation

Remarks

If UIViewController.ShouldAutorotateToInterfaceOrientation returns false, this method can be used to programmatically trigger view rotation.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0