按钮,label等设置圆角,边框颜色
label.layer.cornerRadius = 2;
label.clipsToBounds = YES;(label一定要加上这个,其他的不用)
label.layer.borderWidth = 1;
label.layer.borderColor = [UIColor redColor].CGColor;
按钮,label等设置圆角,边框颜色
label.layer.cornerRadius = 2;
label.clipsToBounds = YES;(label一定要加上这个,其他的不用)
label.layer.borderWidth = 1;
label.layer.borderColor = [UIColor redColor].CGColor;
转载于:https://my.oschina.net/u/1466119/blog/373954