forked from ondalabs/OLGhostAlertView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOLGhostAlertView.h
40 lines (33 loc) · 1.18 KB
/
OLGhostAlertView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// OLGhostAlertView.h
//
// Originally created by Radu Dutzan.
// (c) 2012 Onda.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, OLGhostAlertViewPosition) {
OLGhostAlertViewPositionBottom,
OLGhostAlertViewPositionCenter,
OLGhostAlertViewPositionTop
};
typedef NS_ENUM(NSUInteger, OLGhostAlertViewStyle) {
OLGhostAlertViewStyleDefault, // defaults to OLGhostAlertViewStyleDark
OLGhostAlertViewStyleLight,
OLGhostAlertViewStyleDark
};
@interface OLGhostAlertView : UIView
- (id)initWithTitle:(NSString *)title;
- (id)initWithTitle:(NSString *)title message:(NSString *)message;
- (id)initWithTitle:(NSString *)title message:(NSString *)message timeout:(NSTimeInterval)timeout dismissible:(BOOL)dismissible;
- (void)show;
- (void)showInView:(UIView *)view;
- (void)hide;
@property (nonatomic) OLGhostAlertViewPosition position;
@property (nonatomic) OLGhostAlertViewStyle style;
@property (nonatomic, copy) void (^completionBlock)(void);
@property (nonatomic) NSString *title;
@property (nonatomic) NSString *message;
@property (nonatomic) NSTimeInterval timeout;
@property (nonatomic) BOOL dismissible;
@property (nonatomic, readonly, getter=isVisible) BOOL visible;
@end