UIView.PerformWithoutAnimation(Action) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将一组更改应用于视图,并保证不会使用动画。
[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 进行动画处理。