Instance Property

cancelButtonIndex

The index number of the cancel button.

Declaration

var cancelButtonIndex: Int { get set }

Discussion

The button indices start at 0. If -1, then the index is not set.

See Also

Configuring Buttons

func addButton(withTitle: String?) -> Int

Adds a button to the receiver with the given title.

Deprecated
var numberOfButtons: Int

The number of buttons on the alert view.

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

Returns the title of the button at the given index.

Deprecated
func textField(at: Int) -> UITextField?

Returns the text field at the given index

Deprecated
var firstOtherButtonIndex: Int

The index of the first other button.

Deprecated