UIView.SetAnimationTransition Method

Definition

Sets a transition to be used during an animation block.

[Foundation.Export("setAnimationTransition:forView:cache:")]
public static void SetAnimationTransition (UIKit.UIViewAnimationTransition transition, UIKit.UIView forView, bool cache);
static member SetAnimationTransition : UIKit.UIViewAnimationTransition * UIKit.UIView * bool -> unit

Parameters

transition
UIViewAnimationTransition

The transition to be applied to the view.

forView
UIView

The view to which to apply the transition.

cache
Boolean

Set to YES, if before and after images of the view are to be rendered once and used to create frames in the animation; set to NO, when the view and its contents are to be updated for each frame of the transition animation

Attributes

Remarks

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

Applies to