UIKit.UIActionSheet.AddButton Method
This method will add a custom button to an action sheet.

Syntax

[Foundation.Export("addButtonWithTitle:")]
public virtual nint AddButton (string title)

Parameters

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

Returns

The index of the button that was added.

Remarks

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0