您的位置:首页 > 其它

按钮添加边框和边框色

2015-11-08 16:05 253 查看
//按钮边框宽度

[_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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: