UIActionSheet(Blocks) Category Reference
Conforms to | UIActionSheetDelegate |
Declared in | UIActionSheet+Blocks.h UIActionSheet+Blocks.m |
Instance Methods
addButtonWithTitle:handler:
Add a button with a callback block.
- (void)addButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block
Parameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIActionSheet+Blocks.h
addCancelButtonWithTitle:handler:
Add a cancel button with a callback block.
- (void)addCancelButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block
Parameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIActionSheet+Blocks.h
addDestructiveButtonWithTitle:handler:
Add a destructive button with a callback block.
- (void)addDestructiveButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIActionSheet *sender ))block
Parameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIActionSheet+Blocks.h