UIViewController.WillAnimateRotation(UIInterfaceOrientation, Double) UIViewController.WillAnimateRotation(UIInterfaceOrientation, Double) Method

Definition

Called prior to a one-step interface rotation.

[Foundation.Export("willAnimateRotationToInterfaceOrientation:duration:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use Adaptive View Controllers instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void WillAnimateRotation (UIKit.UIInterfaceOrientation toInterfaceOrientation, double duration);
abstract member WillAnimateRotation : UIKit.UIInterfaceOrientation * double -> unit
override this.WillAnimateRotation : UIKit.UIInterfaceOrientation * double -> unit

Parameters

toInterfaceOrientation
UIInterfaceOrientation UIInterfaceOrientation

The new orientation.

duration
Double Double

The duration of the rotation animation, in seconds.

Remarks

This method is called from with the animation block associated with a user interface rotation. When this method is called, the InterfaceOrientation is set to the new interface orientation and the Bounds of the UIViewController's View have been modified.

Applies to