Share via


UIView.PerformWithoutAnimation(Action) 方法

定义

将一组更改应用于视图,并保证不会使用动画。

[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

参数

actionsWithoutAnimation
Action

查看将在不带动画的情况下执行的过渡代码。

属性

注解

不建议使用此方法。 应用程序开发人员应倾向于使用 UIViewPropertyAnimator 类来对 UIView 进行动画处理。

适用于