UIViewController.DismissViewController(Boolean, Action) Method

Definition

Dismisses the presented view controller.

[Foundation.Export("dismissViewControllerAnimated:completion:")]
public virtual void DismissViewController (bool animated, Action completionHandler);
abstract member DismissViewController : bool * Action -> unit
override this.DismissViewController : bool * Action -> unit

Parameters

animated
Boolean

Boolean that determines if the transition is to be animated.

completionHandler
Action

The method to invoke when the animation completes.

This parameter can be null.

Attributes

Applies to