{
//#define __ZColor(r,g,b) [UIColor colorWithRed:r/255. green:g/255. blue:b/255. alpha:1.]
UILabel* _comLab = [[UILabel alloc]init];
_comLab.layer.masksToBounds = YES;
_comLab.layer.cornerRadius = 8;
_comLab.layer.borderWidth = 1.;
_comLab.layer.borderColor = [__ZColor(230, 230, 230) CGColor];
_comLab.textColor = __ZColor(170, 170, 170);
_comLab.backgroundColor = __ZColor(247, 247, 247);
_comLab.font = [UIFont systemFontOfSize:12];
_comLab.textAlignment = NSTextAlignmentCenter;
[self addSubview:_comLab];
}
iOS-添加边框
最新推荐文章于 2022-03-25 15:43:05 发布