Instance Property

firstOtherButtonIndex

The index of the first custom button.

Declaration

var firstOtherButtonIndex: Int { get }

Discussion

Button indices start at 0. The default value of this property is -1, which indicates that there are no other custom buttons.

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
func buttonTitle(at: Int) -> String?

Returns the title of the button at the specified index.

Deprecated
var cancelButtonIndex: Int

The index number of the cancel button.

Deprecated
var destructiveButtonIndex: Int

The index number of the destructive button.

Deprecated