button设置
2015-08-11 17:30
253 查看
XWColorModel *rgb = [UIColorRGBWithHexString:@"3f8be6"withAlpha:1];
[checkBoxButtonsetBackgroundImage:[UIImageimageNamed:@"actionIconDownloadSelected"]
forState:UIControlStateNormal];
[checkBoxButtonsetBackgroundImage:[UIImageimageNamed:@"actionIconDownloadedSelected"]
forState:UIControlStateSelected];
[checkBoxButton.layersetMasksToBounds:YES];
[checkBoxButton.layersetCornerRadius:3.0];//设置矩圆角半径
[checkBoxButton.layersetBorderWidth:1.0];
//边框宽度
self.outOfMoneyButton.layer.borderColor
= [UIColor
colorWithHexString:@"#3f8be6"
withAlpha:1].CGColor;
[checkBoxButtonsetBackgroundImage:[UIImageimageNamed:@"actionIconDownloadSelected"]
forState:UIControlStateNormal];
[checkBoxButtonsetBackgroundImage:[UIImageimageNamed:@"actionIconDownloadedSelected"]
forState:UIControlStateSelected];
[checkBoxButton.layersetMasksToBounds:YES];
[checkBoxButton.layersetCornerRadius:3.0];//设置矩圆角半径
[checkBoxButton.layersetBorderWidth:1.0];
//边框宽度
self.outOfMoneyButton.layer.borderColor
= [UIColor
colorWithHexString:@"#3f8be6"
withAlpha:1].CGColor;
相关文章推荐
- VS EF Error: Configuration Error extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider"
- oracle——DDL
- 隐马尔科夫(Hidden Markov Model,HMM)详解
- RHEL6.6 64位源码编译hadoop 2.7.1
- Android 开发之 DishesView自定义点菜控件
- onItemSelected与onItemClick的区别
- canvas绘制简易动画
- C# Xamarin.Parse 模糊查询 忽略大小写
- 27-网络编程-17-网络编程(TCP协议-练习-上传图片客户端)
- 27-网络编程-18-网络编程(TCP协议-练习-上传图片服务端)
- python 文件中的中文错误,SyntaxError: Non-ASCII character '\xe6' in file
- enable ide
- SQL备份与恢复备份策略
- 华为OJ(求一个整数的二进制中1的个数)
- 线段树入门
- Python 模块学习:os模块
- [leetcode-113]Path Sum II(java)
- 采石管理系统,采石场车辆出入管理系统
- OC:习题来自平时搜索
- 微信公众平台开发 用户分组接口