-
Notifications
You must be signed in to change notification settings - Fork 7
/
GlobalPopupAlert.h
66 lines (52 loc) · 1.08 KB
/
GlobalPopupAlert.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// GlobalPopupAlert.h
//
// Created by Stuart Hall on 14/03/11.
//
#import <Foundation/Foundation.h>
@interface GlobalPopupAlert : NSObject {
@protected
UIView* roundView;
UILabel* label;
double alpha;
}
@property (nonatomic, retain) UIView* roundView;
@property (nonatomic, retain) UILabel* label;
@property double alpha;
/**
* Displays the alert with the specific string
**/
+ (void)show:(NSString*)text;
/**
* Displays the alert with the specific string and fades out
**/
+ (void)show:(NSString*)text andFadeOutAfter:(double)secs;
/**
* Displays the alert with the specific string and fades out
**/
+ (void)show:(NSString*)text andFadeOutAfter:(double)secs inView:(UIView*)view;
/**
* Hides the popup immediately
**/
+ (void)hide;
/**
* Fades the popup out
**/
+ (void)fadeOutAfter:(double)secs;
/**
* Sets the background color
**/
+ (void)setBackgroundColor:(UIColor*)color;
/**
* Sets the label color
**/
+ (void)setLabelColor:(UIColor*)color;
/**
* Sets the height
**/
+ (void)setHeight:(double)h;
/**
* Sets the alpha
**/
+ (void)setAlpha:(double)a;
@end