//按钮边框宽度
[_numberButton.layer setBorderColor:[UIColor colorWithRed:28/255.0 green:162/255.0 blue:66/255.0 alpha:1].CGColor];
[_numberButton.layer setBorderWidth:1];
[_numberButton.layer setMasksToBounds:YES];
_numberButton.backgroundColor = [UIColor whiteColor];
//设置圆角
_numberButton.layer.cornerRadius = 5;
_numberButton.clipsToBounds = YES;
_numberButton.titleLabel.font = [UIFont systemFontOfSize:13];
时间: 2025-01-06 06:05:06