设置按钮(UIButton)为圆角矩形
2015-07-30 10:08
411 查看
//设置按钮颜色
self.autoLoginCheckBox.layer.borderColor = [[UIColor redColor] CGColor];
//设置边框宽度
self.autoLoginCheckBox.layer.borderWidth = 1;
//设置按钮为圆角矩形
[self.autoLoginCheckBox.layer setMasksToBounds:YES];
[self.autoLoginCheckBox.layer setCornerRadius:5];
self.autoLoginCheckBox.layer.borderColor = [[UIColor redColor] CGColor];
//设置边框宽度
self.autoLoginCheckBox.layer.borderWidth = 1;
//设置按钮为圆角矩形
[self.autoLoginCheckBox.layer setMasksToBounds:YES];
[self.autoLoginCheckBox.layer setCornerRadius:5];
相关文章推荐
- SQL - UNIQUE约束
- iOS - 导航栏UINavigationController常用属性
- UIlabel 获取高度
- LeetCode OJ 之 Implement Queue using Stacks(使用栈实现队列)
- UILabel attributedText
- 解决:Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52
- UILabel UI中添加文字框
- 猜拳游戏GuessGame源码
- 猜拳游戏GuessGame源码
- Optimal ArrayMultiplication Sequence
- requiredJS----AMD模块加载器
- LeetCode——Implement Queue using Stacks
- UISearchBar的介绍以及蒙板的主流使用
- Servlet请求转发 RequestDispatcher接口知识点
- UIKit 带属性的字符串 NSAttributedString、NSMutableAttributedString、NSTextStorge(未完成)
- 基于Spacebuilder开发问题汇总
- MicroservicePrerequisites
- Unique Binary Search Trees
- C# string与StringBuilder的不同
- Snail—UI学习之文本编辑视图UITextView