Bewerken

Delen via


UIViewController.WillAnimateSecondHalfOfRotation Method

Definition

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

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

Parameters

fromInterfaceOrientation
UIInterfaceOrientation

The old orientation.

duration
Double

The duration of the second 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 new orientation.

Applies to