Instance Method

buttonTitle(at:)

Returns the title of the button at the specified index.

Declaration

func buttonTitle(at buttonIndex: Int) -> String?

Parameters

buttonIndex

The index of the button. The button indices start at 0.

Return Value

The title of the button specified by index buttonIndex.

See Also

Configuring Buttons

func addButton(withTitle: String?) -> Int

Adds a custom button to the action sheet.

Deprecated
var numberOfButtons: Int

The number of buttons on the action sheet.

Deprecated
var cancelButtonIndex: Int

The index number of the cancel button.

Deprecated
var destructiveButtonIndex: Int

The index number of the destructive button.

Deprecated
var firstOtherButtonIndex: Int

The index of the first custom button.

Deprecated