File tree 2 files changed +420
-0
lines changed 2 files changed +420
-0
lines changed Original file line number Diff line number Diff line change
1
+ //
2
+ // YRDropdownView.h
3
+ // YRDropdownViewExample
4
+ //
5
+ // Created by Eli Perkins on 1/27/12.
6
+ // Copyright (c) 2012 One Mighty Roar. All rights reserved.
7
+ //
8
+
9
+ #import < UIKit/UIKit.h>
10
+ #import < QuartzCore/QuartzCore.h>
11
+
12
+ typedef enum {
13
+ StatusTypeDefault = 0 ,
14
+ StatusTypePrimary,
15
+ StatusTypeInfo,
16
+ StatusTypeSuccess,
17
+ StatusTypeWarning,
18
+ StatusTypeDanger,
19
+ StatusTypeError,
20
+ } StatusType;
21
+
22
+ @interface DStatus : UIView
23
+ {
24
+ NSString *titleText;
25
+ UILabel *titleLabel;
26
+ SEL onTouch;
27
+ NSDate *showStarted;
28
+ BOOL shouldAnimate;
29
+ StatusType statusType;
30
+ }
31
+
32
+ @property (copy ) NSString *titleText;
33
+ @property (assign ) float minHeight;
34
+
35
+ #pragma mark - View methods
36
+ + (DStatus *)showInView : (UIView *)view
37
+ withMessage : (NSString *)title
38
+ type : (StatusType) gradient ;
39
+
40
+ + (DStatus *)showInView : (UIView *)view
41
+ withMessage : (NSString *)title
42
+ type : (StatusType) gradient
43
+ hideAfter : (float )delay ;
44
+
45
+ + (BOOL )hideInView : (UIView *)view ;
46
+
47
+ #pragma mark -
48
+ - (void )show : (BOOL )animated ;
49
+
50
+ @end
You can’t perform that action at this time.
0 commit comments