Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 38 lines (27 sloc) 1.02 KB
//
// BlockActionSheet.h
//
//
#import <UIKit/UIKit.h>
/**
* 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