//
//  UIAlertView+Blocks.h
//  UIKitCategoryAdditions
//

#import <UIKit/UIKit.h>

typedef void (^DismissBlock)(int buttonIndex,UIAlertView*alertView);
typedef void (^CancelBlock)(UIAlertView *alertView);
typedef void (^OtherBlock)(int buttonIndex,UIAlertView*alertView);
@interface UIAlertView (Blocks) <UIAlertViewDelegate> 


+ (UIAlertView*) alertViewWithWithType:(UIAlertViewStyle)type Title:(NSString*) title
                                message:(NSString*) message
                      cancelButtonTitle:(NSString*) cancelButtonTitle
                      otherButtonTitles:(NSArray*) otherButtons
                              onDismiss:(DismissBlock) dismissed
                               onCancel:(CancelBlock) cancelled;

+ (UIAlertView*) showAlertViewWithType:(UIAlertViewStyle)type Title:(NSString*) title
                                message:(NSString*) message 
                      cancelButtonTitle:(NSString*) cancelButtonTitle
                      otherButtonTitles:(NSArray*) otherButtons
                              onDismiss:(DismissBlock) dismissed                   
                               onCancel:(CancelBlock) cancelled;


@end
