UIAlertView.AddButton(String) Method

Definition

Adds a button to an alert view with the specified title.

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

Parameters

title
String

The string that will appear in the button.

This parameter can be null.

Returns

System.System.IntPtr System.nativeint

The index of the newly added button.

Attributes

Remarks

This method adds a button to an alert view with the specified title.

Applies to