편집

다음을 통해 공유


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

The new orientation.

duration
Double

The duration of the rotation animation, in seconds.

Attributes

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

See also

  • <xref:UIKit.UIViewController.WillRotate>
  • <xref:UIKit.UIViewController.DidRotate>