// // BlockActionSheet.h // // #import /** * A simple block-enabled API wrapper on top of UIActionSheet. */ @interface BlockActionSheet : NSObject { @private UIView *_view; NSMutableArray *_blocks; CGFloat _height; } @property (nonatomic, readonly) UIView *view; @property (nonatomic, readwrite) BOOL vignetteBackground; + (id)sheetWithTitle:(NSString *)title; - (id)initWithTitle:(NSString *)title; - (void)setCancelButtonWithTitle:(NSString *) title block:(void (^)()) block; - (void)setDestructiveButtonWithTitle:(NSString *) title block:(void (^)()) block; - (void)addButtonWithTitle:(NSString *) title block:(void (^)()) block; - (void)setCancelButtonWithTitle:(NSString *) title atIndex:(NSInteger)index block:(void (^)()) block; - (void)setDestructiveButtonWithTitle:(NSString *) title atIndex:(NSInteger)index block:(void (^)()) block; - (void)addButtonWithTitle:(NSString *) title atIndex:(NSInteger)index block:(void (^)()) block; - (void)showInView:(UIView *)view; - (NSUInteger)buttonCount; @end