-
Notifications
You must be signed in to change notification settings - Fork 22
/
GOOModalView.h
18 lines (17 loc) · 927 Bytes
/
GOOModalView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import <UIKit/UIKit.h>
@interface GOOModalView : UIView
@property (nonatomic, readwrite, weak) id target;
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnBackgroundTap;
@property (nonatomic, readwrite, assign) BOOL shouldDismissOnApplicationBackground;
- (instancetype)initWithTarget:(id)target;
- (void)addTitle:(NSString *)title withAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title withDestructiveAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title withSelector:(SEL)selector;
- (void)addTitle:(NSString *)title withCancelSelector:(SEL)cancelSelector;
- (void)addTitle:(NSString *)title withDestructiveSelector:(SEL)cancelSelector;
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withAction:(void (^)(void))action;
- (void)addTitle:(NSString *)title iconImage:(UIImage *)iconImage withSelector:(SEL)selector;
- (void)show;
- (void)cancel;
- (void)dismiss;
@end