iOS Guides | Samples

UIKit.UIViewController.PresentViewController Method

Modally presents a view controller.

Syntax

[Foundation.Export("presentViewController:animated:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 5, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual Void PresentViewController (UIViewController viewControllerToPresent, Boolean animated, [ObjCRuntime.BlockProxy(typeof(ObjCRuntime.Trampolines/NIDAction))] Action completionHandler)

Parameters

viewControllerToPresent
View controller that displays over the current view controller content.
animated
Boolean indicating whether to animate presentation or not.
completionHandler
Completion action to execute after the presentation finishes.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0