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 *)message
Parameters
- title
The title of the alert.
- message
The message of the alert.
Return Value
A freshly minted UIAlertView
.
Declared In
UIAlertView+Blocks.h
Instance Methods
addButtonWithTitle:handler:
Add a button with a callback block.
- (void)addButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIAlertView *sender ))block
Parameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIAlertView+Blocks.h
addCancelButtonWithTitle:handler:
Add a cancel button with a callback block.
- (void)addCancelButtonWithTitle:(NSString *)title handler:(void ( ^ ) ( UIAlertView *sender ))block
Parameters
- title
The title for the sheet.
- block
The callback sent when a user selects the option.
Declared In
UIAlertView+Blocks.h
initWithTitle:messsge:
Initializes a UIAlertView
with the given title and message and no buttons.
- (instancetype)initWithTitle:(NSString *)title messsge:(NSString *)message
Parameters
- title
The title of the alert.
- message
The message of the alert.
Return Value
A freshly minted UIAlertView
.
Declared In
UIAlertView+Blocks.h