Modifier

Partager via


UIAlertController.AddAction(UIAlertAction) Method

Definition

Adds a UIAlertAction action that this UIAlertController displays as a button for the user.

[Foundation.Export("addAction:")]
public virtual void AddAction (UIKit.UIAlertAction action);
abstract member AddAction : UIKit.UIAlertAction -> unit
override this.AddAction : UIKit.UIAlertAction -> unit

Parameters

action
UIAlertAction

The action to add, this is created by calling Create(String, UIAlertActionStyle, Action<UIAlertAction>).

Attributes

Applies to