Instance Property

destructiveButtonIndex

The index number of the destructive button.

Declaration

@property(nonatomic) NSInteger destructiveButtonIndex;

Discussion

Button indices start at 0. The default value of this property is normally -1, which indicates that no destructive button has been set. However, a destructive button may be created and set automatically by the initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles: method. If you use that method to create a destructive button, you should not change the value of this property.

See Also

Configuring Buttons

- addButtonWithTitle:

Adds a custom button to the action sheet.

Deprecated
numberOfButtons

The number of buttons on the action sheet.

Deprecated
- buttonTitleAtIndex:

Returns the title of the button at the specified index.

Deprecated
cancelButtonIndex

The index number of the cancel button.

Deprecated
firstOtherButtonIndex

The index of the first custom button.

Deprecated