#import "CALayer+XibConfiguration.h"
@implementation CALayer (XibConfiguration)
- (void)setBorderUIColor:(UIColor *)color
{
self.borderColor = color.CGColor;
}
- (UIColor *)borderUIColor
{
return [UIColor colorWithCGColor:self.borderColor];
}
- (void)setShadowUIColor:(UIColor *)color
{
self.shadowColor = color.CGColor;
}
- (UIColor *)shadowUIColor
{
return [UIColor colorWithCGColor:self.shadowColor];
}
@end
边框:
阴影: