UIAlertController.AddAction(UIAlertAction) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加一个 UIAlertAction 操作,该 this
UIAlertController 操作显示为用户的按钮。
[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>)创建的。
- 属性