使用系统方法 创建一个 自定义样式的button
来源:互联网 发布:exe软件修改教程 编辑:程序博客网 时间:2024/06/06 03:55
self.aBtn = [UIButton buttonWithType:UIButtonTypeCustom];
_aBtn.frame = CGRectMake(kScaleWidth(30.0),
kRelateHeight(10.0),
kScaleWidth(30.0),
kRelateHeight(30.0));
_aBtn.tag = kOriginBtnTag;
[_aBtn setBackgroundImage:[self imageWithColor:kColor_White size:_aBtn.frame.size] forState:UIControlStateNormal];
[_aBtn setBackgroundImage:[self imageWithColor:kColor_TopBtnSel size:_aBtn.frame.size] forState:UIControlStateSelected];
_aBtn.clipsToBounds = YES;
_aBtn.selected = YES;
[_aBtn.layer setCornerRadius:15.0];
[_aBtn.layer setBorderWidth:1];
[_aBtn.layer setBorderColor:[[UIColor grayColor] CGColor]];
[self addSubview:_aBtn];
- 使用系统方法 创建一个 自定义样式的button
- 自定义button的样式
- 定义input type=file 样式的方法,使用一个text和一个button模拟
- 定义input type=file 样式的方法,使用一个text和一个button模拟
- 自定义的一些button样式
- 自定义AlertDialog button的样式
- AN button自定义样式 && AN selector和shape的使用
- 使用shape自定义圆角样式的Button和EditText
- 一个清爽的button样式
- android使用xml自定义button样式
- Android selector自定义shape的button样式
- 在view上画一个button,自定义其按下和松开后的样式
- 自定义Button样式
- android自定义button样式
- 自定义button按钮样式
- Button按钮自定义样式
- 自定义Button样式
- android自定义button样式
- JavaScript中的this用法总结
- UDP多播
- coco2dx 抠图效果
- iOS创建测试包
- C++primer第五版第八章学习笔记
- 使用系统方法 创建一个 自定义样式的button
- linux彻底卸载mysql
- Spring 通过父类注册通用属性
- Android基础入门教程——10.7 WindowManager(窗口管理服务)
- ffmpeg:fatal error C1189: #error : missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
- 网络后台开发面试题
- js二维数组和多维数组的定义声明
- 触发器和存储过程
- 消除重复单词