UIActionSheet.AddButton(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.