Edit

Share via


UIViewController.Transition Method

Definition

Used for transitioning between two view controller'€™s child view controllers.

[Foundation.Export("transitionFromViewController:toViewController:duration:options:animations:completion:")]
public virtual void Transition (UIKit.UIViewController fromViewController, UIKit.UIViewController toViewController, double duration, UIKit.UIViewAnimationOptions options, Action animations, UIKit.UICompletionHandler completionHandler);
abstract member Transition : UIKit.UIViewController * UIKit.UIViewController * double * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit
override this.Transition : UIKit.UIViewController * UIKit.UIViewController * double * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit

Parameters

fromViewController
UIViewController

The view controller that initiates the action and which is currently visible in the parent hierarchy.

toViewController
UIViewController

The target view controller (not currently visible).

duration
Double

Total duration of the animations, measured in seconds.

options
UIViewAnimationOptions

A mask of options that determines how you want the animations performed.

animations
Action

An action object containing the changes that the application developer wants to commit to the views. Here is where developers can modify any animatable properties of the views.

completionHandler
UICompletionHandler

A completion action to be called when the animation completes.

Attributes

Applies to