diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-14 15:17:39 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-14 15:17:39 -0600 |
| commit | 6ff632a1444a214ba61597ae9e1a034e5f1f6073 (patch) | |
| tree | f11725593b3fcb7d266e16d76b57755cd3e39af1 /Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h | |
| parent | b4051750b51ad5b9ee0574fa5ceaa71649c19e95 (diff) | |
add more pods
Diffstat (limited to 'Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h')
| -rwxr-xr-x | Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h b/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h new file mode 100755 index 0000000..15238de --- /dev/null +++ b/Pods/BlockAlertsAnd-ActionSheets/BlockAlertsDemo/ToAddToYourProjects/BlockAlertView.h @@ -0,0 +1,44 @@ +// +// BlockAlertView.h +// +// + +#import <UIKit/UIKit.h> + +@interface BlockAlertView : NSObject { +@protected + UIView *_view; + NSMutableArray *_blocks; + CGFloat _height; + NSString *_title; + NSString *_message; + BOOL _shown; + BOOL _cancelBounce; +} + ++ (BlockAlertView *)alertWithTitle:(NSString *)title message:(NSString *)message; + ++ (void)showInfoAlertWithTitle:(NSString *)title message:(NSString *)message; ++ (void)showErrorAlert:(NSError *)error; + +- (id)initWithTitle:(NSString *)title message:(NSString *)message; + +- (void)setDestructiveButtonWithTitle:(NSString *)title block:(void (^)())block; +- (void)setCancelButtonWithTitle:(NSString *)title block:(void (^)())block; +- (void)addButtonWithTitle:(NSString *)title block:(void (^)())block; + +// Images should be named in the form "alert-IDENTIFIER-button.png" +- (void)addButtonWithTitle:(NSString *)title imageIdentifier:(NSString*)identifier block:(void (^)())block; + +- (void)addComponents:(CGRect)frame; + +- (void)show; +- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated; + +- (void)setupDisplay; + +@property (nonatomic, retain) UIImage *backgroundImage; +@property (nonatomic, readonly) UIView *view; +@property (nonatomic, readwrite) BOOL vignetteBackground; + +@end |
