UIActionSheet.AddButton(String) Method

Definition

This method will add a custom button to an action sheet.

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

Parameters

title
String

The title of a button to add to an action sheet.

Returns

System.System.IntPtr System.nativeint

The index of the button that was added.

Attributes

Remarks

Button indices on an action sheet are zero-based; they will start at zero and increment for each button added.

Applies to