Blame client/iOS/Views/BlockAlertView.h
|
Packit |
1fb8d4 |
//
|
|
Packit |
1fb8d4 |
// BlockAlertView.h
|
|
Packit |
1fb8d4 |
//
|
|
Packit |
1fb8d4 |
//
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#import <UIKit/UIKit.h>
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
@interface BlockAlertView : NSObject
|
|
Packit Service |
5a9772 |
{
|
|
Packit Service |
5a9772 |
@protected
|
|
Packit Service |
5a9772 |
UIView *_view;
|
|
Packit Service |
5a9772 |
NSMutableArray *_blocks;
|
|
Packit Service |
5a9772 |
CGFloat _height;
|
|
Packit Service |
5a9772 |
NSString *_title;
|
|
Packit Service |
5a9772 |
NSString *_message;
|
|
Packit Service |
5a9772 |
BOOL _shown;
|
|
Packit Service |
5a9772 |
BOOL _cancelBounce;
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
+ (BlockAlertView *)alertWithTitle:(NSString *)title message:(NSString *)message;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
+ (void)showInfoAlertWithTitle:(NSString *)title message:(NSString *)message;
|
|
Packit |
1fb8d4 |
+ (void)showErrorAlert:(NSError *)error;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (id)initWithTitle:(NSString *)title message:(NSString *)message;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (void)setDestructiveButtonWithTitle:(NSString *)title block:(void (^)())block;
|
|
Packit |
1fb8d4 |
- (void)setCancelButtonWithTitle:(NSString *)title block:(void (^)())block;
|
|
Packit |
1fb8d4 |
- (void)addButtonWithTitle:(NSString *)title block:(void (^)())block;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (void)addComponents:(CGRect)frame;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (void)show;
|
|
Packit |
1fb8d4 |
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
- (void)setupDisplay;
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
@property(nonatomic, retain) UIImage *backgroundImage;
|
|
Packit Service |
5a9772 |
@property(nonatomic, readonly) UIView *view;
|
|
Packit Service |
5a9772 |
@property(nonatomic, readwrite) BOOL vignetteBackground;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@end
|