Freigeben über


UIView.PerformWithoutAnimation(Action) Methode

Definition

Wendet eine Reihe von Änderungen an einer Ansicht an, wobei sichergestellt wird, dass keine Animationen verwendet werden.

[Foundation.Export("performWithoutAnimation:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void PerformWithoutAnimation (Action actionsWithoutAnimation);
static member PerformWithoutAnimation : Action -> unit

Parameter

actionsWithoutAnimation
Action

Zeigen Sie Übergangscode an, der ohne Animation ausgeführt werden soll.

Attribute

Hinweise

Von der Verwendung dieser Methode wird abgeraten. Anwendungsentwickler sollten die UIViewPropertyAnimator -Klasse bevorzugen, um UIViews zu animieren.

Gilt für: