1 //准备工作2 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];3 button.frame = CGRectMake(50,50,100,40);4 button.backgroundColor ...
1 //准备工作2 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];3 button.frame = CGRectMake(50,50,100,40);4 button.backgroundColor = [UIColor blueColor];5 //关键语句6 button.layer.cornerRadius = 2.0;//2.0是圆角的弧度,根据需求自己更改
原标题:UIButton添加圆角
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。