UIAlertController.AddAction(UIAlertAction) 方法

定义

添加一个 UIAlertAction 操作,该 thisUIAlertController 操作显示为用户的按钮。

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

参数

action
UIAlertAction

要添加的操作,这是通过调用 Create(String, UIAlertActionStyle, Action<UIAlertAction>)创建的。

属性

适用于