Edytuj

Udostępnij za pośrednictwem


UIViewController.WillAnimateFirstHalfOfRotation Method

Definition

Deprecated method sent during the first half of a rotation. Application developers should instead use WillAnimateRotation(UIInterfaceOrientation, Double).

[Foundation.Export("willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void WillAnimateFirstHalfOfRotation (UIKit.UIInterfaceOrientation toInterfaceOrientation, double duration);
abstract member WillAnimateFirstHalfOfRotation : UIKit.UIInterfaceOrientation * double -> unit
override this.WillAnimateFirstHalfOfRotation : UIKit.UIInterfaceOrientation * double -> unit

Parameters

toInterfaceOrientation
UIInterfaceOrientation

The new orientation.

duration
Double

The duration of the first half of the rotation animation, in seconds.

Attributes

Remarks

Two-step rotations are deprecated and application developers should instead use single-step rotations (see WillAnimateRotation(UIInterfaceOrientation, Double) ).

When this method is called, the InterfaceOrientation is set to the old orientation.

Applies to