UIAlertController.Create(String, String, UIAlertControllerStyle) 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.
Creates a UIAlertController object to display an alert to the user that includes a title
, a message
, and UIAlertControllerStyle preferred style, and then returns that UIAlertController object.
[Foundation.Export("alertControllerWithTitle:message:preferredStyle:")]
public static UIKit.UIAlertController Create (string title, string message, UIKit.UIAlertControllerStyle preferredStyle);
static member Create : string * string * UIKit.UIAlertControllerStyle -> UIKit.UIAlertController
Parameters
- preferredStyle
- UIAlertControllerStyle
The desired style for the alert.
Returns
The new instance of the UIAlertController that you can customize.
- Attributes
Remarks
See the UIAlertController documentation for an example on how to use it.