// 设置lable圆角
label.layer.cornerRadius = 5;
label.layer.masksToBounds = YES;
// 设置边框的颜色和边框的宽度
label.layer.borderColor = RGBCOLOR(225, 225, 225).CGColor;
label.layer.borderWidth = 1;
// 设置lable圆角
label.layer.cornerRadius = 5;
label.layer.masksToBounds = YES;
// 设置边框的颜色和边框的宽度
label.layer.borderColor = RGBCOLOR(225, 225, 225).CGColor;
label.layer.borderWidth = 1;
本文标题:给UILabel添加边框和圆角
本文链接:https://www.haomeiwen.com/subject/hcgwdttx.html
网友评论