UIKit.UIAlertController.Create Method
Creates a UIKit.UIAlertController object to display an alert to the user that includes a title, a message, and UIKit.UIAlertControllerStyle preferred style, and then returns that UIKit.UIAlertController object.

Syntax

[Foundation.Export("alertControllerWithTitle:message:preferredStyle:")]
public static UIAlertController Create (string title, string message, UIAlertControllerStyle preferredStyle)

Parameters

title

Title for the alert

This parameter can be null.

message

Message to display for the alert, this is optional.

This parameter can be null.

preferredStyle
The desired style for the alert.

Returns

The new instance of the UIAlertController that you can customize.   

Remarks

See the UIKit.UIAlertController documentation for an example on how to use it.

Requirements

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