Editar

Compartir a través de


UIAlertAction.Create Method

Definition

Creates an action with the specified title, style and event handler.

[Foundation.Export("actionWithTitle:style:handler:")]
public static UIKit.UIAlertAction Create (string title, UIKit.UIAlertActionStyle style, Action<UIKit.UIAlertAction> handler);
static member Create : string * UIKit.UIAlertActionStyle * Action<UIKit.UIAlertAction> -> UIKit.UIAlertAction

Parameters

title
String

The title for the action to be displayed

style
UIAlertActionStyle

The style

handler
Action<UIAlertAction>

The method to invoke when the action is tapped. 

This parameter can be null.

Returns

New instance of an alert action

Attributes

Remarks

Applies to