UIView.AnimateNotify 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AnimateNotify(Double, Double, UIViewAnimationOptions, Action, UICompletionHandler) |
对指定操作中发生的属性更改进行动画处理,并在动画完成时调用完成回调。 |
AnimateNotify(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action, UICompletionHandler) |
执行使用与物理弹簧活动对应的计时曲线的视图动画。 |
AnimateNotify(Double, Action, UICompletionHandler) |
对指定操作中发生的属性更改进行动画处理。 |
AnimateNotify(Double, Double, UIViewAnimationOptions, Action, UICompletionHandler)
对指定操作中发生的属性更改进行动画处理,并在动画完成时调用完成回调。
[Foundation.Export("animateWithDuration:delay:options:animations:completion:")]
public static void AnimateNotify (double duration, double delay, UIKit.UIViewAnimationOptions options, Action animation, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * double * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit
参数
- duration
- Double
动画的持续时间(以秒为单位)。
- delay
- Double
动画开始前的延迟。
- options
- UIViewAnimationOptions
动画选项
- animation
- Action
包含将应用于视图的更改的代码。
- 属性
注解
不建议使用此方法。 应用程序开发人员应首选使用 UIViewPropertyAnimator 类来对 UIView 进行动画处理。
适用于
AnimateNotify(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action, UICompletionHandler)
执行使用与物理弹簧活动对应的计时曲线的视图动画。
[Foundation.Export("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AnimateNotify (double duration, double delay, nfloat springWithDampingRatio, nfloat initialSpringVelocity, UIKit.UIViewAnimationOptions options, Action animations, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * double * nfloat * nfloat * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit
参数
- duration
- Double
动画的持续时间(以秒为单位)。
- delay
- Double
动画开始前的延迟。
- springWithDampingRatio
- nfloat
当弹簧动画接近其静止状态时设置的阻尼比率。 介于 0 和 1 之间的值,表示应用于弹簧效果的阻尼量。
- initialSpringVelocity
- nfloat
附加之前的初始弹簧速度。 弹簧的初始速度,以磅/秒为单位。
- options
- UIViewAnimationOptions
动画选项。
- animations
- Action
包含将应用于视图的更改的代码。
- 属性
注解
不建议使用此方法。 应用程序开发人员应首选使用 UIViewPropertyAnimator 类来对 UIView 进行动画处理。
适用于
AnimateNotify(Double, Action, UICompletionHandler)
对指定操作中发生的属性更改进行动画处理。
[Foundation.Export("animateWithDuration:animations:completion:")]
public static void AnimateNotify (double duration, Action animation, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * Action * UIKit.UICompletionHandler -> unit
参数
- duration
- Double
动画的持续时间(以秒为单位)。
- animation
- Action
包含将应用于视图的更改的代码。
- 属性
注解
不建议使用此方法。 应用程序开发人员应首选使用 UIViewPropertyAnimator 类来对 UIView 进行动画处理。