alienbat / WDAlertView

A simple alert view class for block style operations on iOS UIAlertView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WDAlertView

A simple alert view class for block style operations on iOS UIAlertView.

Usage:

 
[WDAlertView showAlertViewWithTitle:NSLocalizedString(@"Please Confirm", nil)
                           message:NSLocalizedString(@"You sure you want to do this?", nil)
                      dismissBlock:^(UIAlertView *alert_view, NSInteger button_index) {
                          
                          if (button_index) {
                              
                              //Do whatever you need to do after the user confirms. 
                              
                              }];
                          }
                          
                      } cancelButtonTitle:NSLocalizedString(@"No, thanks", nil)
                 otherButtonTitles:NSLocalizedString(@"Yes, please", nil), nil];


About

A simple alert view class for block style operations on iOS UIAlertView

License:MIT License


Languages

Language:Objective-C 87.4%Language:Ruby 12.6%