-
Notifications
You must be signed in to change notification settings - Fork 20
/
GOOAlertView.h
19 lines (18 loc) · 1.19 KB
/
GOOAlertView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#import "GOOModalView.h"
@interface GOOAlertView : GOOModalView
@property (nonatomic, copy, readwrite) NSString *title;
@property (nonatomic, readonly, strong) UILabel *titleLabel;
@property (nonatomic, copy, readwrite) NSString *subtitle;
@property (nonatomic, readonly, strong) UILabel *subtitleLabel;
@property (nonatomic, readwrite, copy) UIImage *icon;
+ (instancetype)dialog;
+ (instancetype)infoDialog;
+ (instancetype)confirmationDialog;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelTitle:(NSString *)cancelTitle;
+ (instancetype)confirmationDialogWithAction:(void (^)(void))action actionTitle:(NSString *)actionTitle cancelAction:(void (^)(void))cancelAction cancelTitle:(NSString *)cancelTitle;
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle;
+ (instancetype)confirmationDialogWithSelector:(SEL)selector actionTitle:(NSString *)actionTitle showsCancelButton:(BOOL)showsCancelButton;
- (void)addCancelButton:(SEL)selector;
- (void)addCancelButtonWithAction:(void (^)(void))action;
@end