File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 9
9
#import " RRSGlowLabel.h"
10
10
11
11
12
+ @interface RRSGlowLabel ()
13
+ - (void )initialize ;
14
+ @end
15
+
12
16
@implementation RRSGlowLabel
13
17
14
18
@synthesize glowColor, glowOffset, glowAmount;
@@ -24,13 +28,22 @@ - (void)setGlowColor:(UIColor *)newGlowColor
24
28
}
25
29
}
26
30
31
+ - (void )initialize {
32
+ colorSpaceRef = CGColorSpaceCreateDeviceRGB ();
33
+
34
+ self.glowOffset = CGSizeMake (0.0 , 0.0 );
35
+ self.glowAmount = 0.0 ;
36
+ self.glowColor = [UIColor clearColor ];
37
+ }
38
+
39
+ - (void )awakeFromNib {
40
+ [self initialize ];
41
+ }
42
+
27
43
- (id )initWithFrame : (CGRect)frame {
28
44
self = [super initWithFrame: frame];
29
45
if (self != nil ) {
30
- colorSpaceRef = CGColorSpaceCreateDeviceRGB ();
31
- self.glowOffset = CGSizeMake (0.0 , 0.0 );
32
- self.glowAmount = 0.0 ;
33
- self.glowColor = [UIColor clearColor ];
46
+ [self initialize ];
34
47
}
35
48
return self;
36
49
}
You can’t perform that action at this time.
0 commit comments