UIAlertView.AddButton(String) 方法

定义

将按钮添加到具有指定标题的警报视图。

[Foundation.Export("addButtonWithTitle:")]
public virtual nint AddButton (string title);
abstract member AddButton : string -> nint
override this.AddButton : string -> nint

参数

title
String

将在按钮中显示的字符串。

此参数可以为 null

返回

System.System.IntPtr System.nativeint

新添加的按钮的索引。

属性

注解

此方法将按钮添加到具有指定标题的警报视图。

适用于