A simple alert view class for block style operations on iOS UIAlertView.
[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];