按钮添加边框和边框色
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];
[_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];
相关文章推荐
- 典型用户故事
- Android读书笔记-----自定义View(1)原理
- JAVA高性能网络编程——牛刀小试
- UVa 127 Accordian Patience
- dlopen动态函数库的加载。
- 泛型相关知识
- 前序创建二叉树+ 前序/中序/后序遍历二叉树
- OSGI的类加载机制
- 20135337——信息安全设计基础第八周学习笔记
- 20135220谈愈敏--信息安全系统设计基础第八周学习总结
- 近视矫正手术:准分子激光,飞秒,全飞秒
- VS2010配置C/C++多线程使用环境
- 当刘小立访问Google时,刘小立如何能访问? ---《计算机网络-自顶向下方法》
- linux命令-bzip2压缩
- Linux expect命令
- Linux之NFS基础总结及应用实践
- swift 重载 泛式 inout的使用
- jsp乱码问题
- 《leetCode》:Rotate Image
- NSCache的使用,SDWebImage的使用,Reachability联网状态检测框架的使用