UIViewController.PresentViewController Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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