UIButton设置圆角
2015-08-21 09:45
453 查看
UIButton *signBtn = [UIButton buttonWithType:UIButtonTypeCustom];
signBtn.frame = CGRectMake(0, 0, 80, 40);
[signBtn.layer
setMasksToBounds:YES];
[signBtn.layer
setCornerRadius:10.0];
//设置矩形四个圆角半径
[signBtn.layer
setBorderWidth:1.0];
//边框宽度
signBtn.frame = CGRectMake(0, 0, 80, 40);
[signBtn.layer
setMasksToBounds:YES];
[signBtn.layer
setCornerRadius:10.0];
//设置矩形四个圆角半径
[signBtn.layer
setBorderWidth:1.0];
//边框宽度
相关文章推荐
- query builder 在线生成sql
- The request sent by the client was syntactically incorrect.
- Android项目使用Ant打包,自动生成build.xml
- Win10预览版10525有哪些新功能 Win10 Build 10525更新内容汇总
- Error:No suitable device found: no device found for connection "System eth0"
- 项目EasyUi和JS中遇到的问题总汇
- 【备忘】liquibase,.xml中的各种标签,支持的sql语句
- Leetcode: Unique Binary Search Trees
- [LeetCode#60]Permutation Sequence
- [Amazon]Given 2 numbers. Find if they are consecutive gray (grey) code sequences
- HUST team contest #2 C Divisible Subsequences ||poj 3844 (剩余类)
- iOS 笔记二:Multiple MVCs 、UINavigationController 、UITabBarController
- iOS实时检测UITextField内容
- DB Query Analyzer 6.04 is distributed, 78 articles concerned have been published
- Continue Posting, Keep Fighting
- iOS UI基础-3.0图片浏览器及plist使用
- String,StringBuffer与StringBuilder的区别?
- UVa 11085 - Back to the 8-Queens
- 解决duilib水平布局(HorizontalLayout)中控件位置计算错误的问题
- hdu 2064 Queuing (递推)