你的位置:首页 > 软件开发 > 操作系统 > UIButton添加圆角

UIButton添加圆角

发布时间:2015-11-25 10:00:34
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 (#换成@)。

可能感兴趣文章

我的浏览记录