Returns the title of the button at the specified index.
SDKs
Framework
On This Page
- (NSString *)buttonTitleAtIndex:(NSInteger)buttonIndex;
buttonIndex
The index of the button. The button indices start at 0.
0
The title of the button specified by index buttonIndex.
- addButtonWithTitle:
Adds a custom button to the action sheet.
numberOfButtons
The number of buttons on the action sheet.
cancelButtonIndex
The index number of the cancel button.
destructiveButtonIndex
The index number of the destructive button.
firstOtherButtonIndex
The index of the first custom button.
- showInView:
Displays an action sheet that originates from the specified view.