Upravit

Sdílet prostřednictvím


UIView.TransitionNotify Method

Definition

Overloads

TransitionNotify(UIView, Double, UIViewAnimationOptions, Action, UICompletionHandler)

Creates a transition animation action that is used for the current container view.

TransitionNotify(UIView, UIView, Double, UIViewAnimationOptions, UICompletionHandler)

Specifies a transition animation to be used between the specified UIViews.

TransitionNotify(UIView, Double, UIViewAnimationOptions, Action, UICompletionHandler)

Creates a transition animation action that is used for the current container view.

[Foundation.Export("transitionWithView:duration:options:animations:completion:")]
public static void TransitionNotify (UIKit.UIView withView, double duration, UIKit.UIViewAnimationOptions options, Action animation, UIKit.UICompletionHandler completion);
static member TransitionNotify : UIKit.UIView * double * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit

Parameters

withView
UIView

View whose state is being manipulated and in which the animation should occur.

duration
Double

The duration of the animation in seconds.

options
UIViewAnimationOptions

A mask of options to be used with the animation.

animation
Action

Action containing the animation and state manipulation of the view.

This parameter can be null.

completion
UICompletionHandler

The method to invoke when the transition completes.

This parameter can be null.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to

TransitionNotify(UIView, UIView, Double, UIViewAnimationOptions, UICompletionHandler)

Specifies a transition animation to be used between the specified UIViews.

[Foundation.Export("transitionFromView:toView:duration:options:completion:")]
public static void TransitionNotify (UIKit.UIView fromView, UIKit.UIView toView, double duration, UIKit.UIViewAnimationOptions options, UIKit.UICompletionHandler completion);
static member TransitionNotify : UIKit.UIView * UIKit.UIView * double * UIKit.UIViewAnimationOptions * UIKit.UICompletionHandler -> unit

Parameters

fromView
UIView

The initial view.

toView
UIView

The final view.

duration
Double

The duration, in seconds, of the animation.

options
UIViewAnimationOptions

A mask of options to be used with the animation.

completion
UICompletionHandler

An UICompletionHandler to be executed at the end of the animation. This parameter may be null.

This parameter can be null.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to