共用方式為


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

新加入按鈕的索引。

屬性

備註

此方法會將按鈕新增至具有指定標題的警示檢視。

適用於