Created
February 22, 2014 16:54
-
-
Save bryanluby/9157978 to your computer and use it in GitHub Desktop.
CALayer helper category for nib access through user defined runtime attributes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation CALayer (NibAccess) | |
- (void)setLub_borderColor:(UIColor *)color | |
{ | |
self.borderColor = color.CGColor; | |
} | |
- (UIColor *)lub_borderColor | |
{ | |
return [UIColor colorWithCGColor:self.borderColor]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment