UIViewController.PresentViewController Method

Definition

Modally presents a view controller.

[Foundation.Export("presentViewController:animated:completion:")]
public virtual void PresentViewController (UIKit.UIViewController viewControllerToPresent, bool animated, Action completionHandler);
abstract member PresentViewController : UIKit.UIViewController * bool * Action -> unit
override this.PresentViewController : UIKit.UIViewController * bool * Action -> unit

Parameters

viewControllerToPresent
UIViewController

View controller that displays over the current view controller content.

animated
Boolean

Boolean indicating whether to animate presentation or not.

completionHandler
Action

Completion action to execute after the presentation finishes.

This parameter can be null.

Attributes

Applies to