UIView.Transition 方法

定义

重载

Transition(UIView, Double, UIViewAnimationOptions, Action, Action)

指定指定集合视图上的过渡动画。

Transition(UIView, UIView, Double, UIViewAnimationOptions, Action)

指定指定集合视图上的过渡动画。

Transition(UIView, Double, UIViewAnimationOptions, Action, Action)

指定指定集合视图上的过渡动画。

[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Transition (UIKit.UIView withView, double duration, UIKit.UIViewAnimationOptions options, Action animation, Action completion);
static member Transition : UIKit.UIView * double * UIKit.UIViewAnimationOptions * Action * Action -> unit

参数

withView
UIView

执行转换的视图。

duration
Double

为过渡动画设置的持续时间。

options
UIViewAnimationOptions

定义动画性能的选项掩码。

animation
Action

包含要对指定视图所做的更改的操作对象。

completion
Action

动画序列完成时要执行的操作对象。

属性

注解

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

适用于

Transition(UIView, UIView, Double, UIViewAnimationOptions, Action)

指定指定集合视图上的过渡动画。

[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Transition (UIKit.UIView fromView, UIKit.UIView toView, double duration, UIKit.UIViewAnimationOptions options, Action completion);
static member Transition : UIKit.UIView * UIKit.UIView * double * UIKit.UIViewAnimationOptions * Action -> unit

参数

fromView
UIView

初始视图。

toView
UIView

最终视图。

duration
Double

动画的持续时间(以秒为单位)。

options
UIViewAnimationOptions

要与动画一起使用的选项的掩码。

completion
Action

将在动画结束时执行的操作。

属性

注解

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

适用于