DTAlertView Class Reference
| Inherits from | UIAlertView |
| Declared in | DTAlertView.h |
Instance Methods
addButtonWithTitle:block:
Adds a button to the alert view
- (NSInteger)addButtonWithTitle:(NSString *)title block:(DTAlertViewBlock)blockParameters
- title
The title of the new button.
- block
The block to execute when the button is tapped.
Return Value
The index of the new button. Button indices start at 0 and increase in the order they are added.
Declared In
DTAlertView.haddCancelButtonWithTitle:block:
Same as above, but for a cancel button.
- (NSInteger)addCancelButtonWithTitle:(NSString *)title block:(DTAlertViewBlock)blockParameters
- title
The title of the cancel button.
- block
The block to execute when the button is tapped.
Return Value
The index of the new button. Button indices start at 0 and increase in the order they are added.
Declared In
DTAlertView.h