UIAlertView(Blocks) Category Reference
| Conforms to | UIAlertViewDelegate |
| Declared in | UIAlertView+Blocks.h UIAlertView+Blocks.m |
Class Methods
alertWithTitle:message:
Creates a UIAlertView with the given title and message and no buttons.
+ (UIAlertView *)alertWithTitle:(NSString *)title message:(NSString *)messageParameters
- title
The title of the alert.
- message
The message of the alert.
Return Value
A freshly minted UIAlertView.
Declared In
UIAlertView+Blocks.hInstance Methods
addButtonWithTitle:handler:
Add a button with a callback block.
- (void)addButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIAlertView *sender ))blockParameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIAlertView+Blocks.haddCancelButtonWithTitle:handler:
Add a cancel button with a callback block.
- (void)addCancelButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIAlertView *sender ))blockParameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIAlertView+Blocks.hinitWithTitle:messsge:
Initializes a UIAlertView with the given title and message and no buttons.
- (instancetype)initWithTitle:(NSString *)title messsge:(NSString *)messageParameters
- title
The title of the alert.
- message
The message of the alert.
Return Value
A freshly minted UIAlertView.
Declared In
UIAlertView+Blocks.h