UIViewController.Transition(UIViewController, UIViewController, Double, UIViewAnimationOptions, Action, UICompletionHandler) UIViewController.Transition(UIViewController, UIViewController, Double, UIViewAnimationOptions, Action, UICompletionHandler) 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 UIViewController

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

toViewController
UIViewController UIViewController

The target view controller (not currently visible).

duration
Double Double

Total duration of the animations, measured in seconds.

options
UIViewAnimationOptions UIViewAnimationOptions

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

animations
Action 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 UICompletionHandler

A completion action to be called when the animation completes.

Applies to