UIButton的常见设置
来源:互联网 发布:会员软件制度 编辑:程序博客网 时间:2024/05/20 06:53
•- (void)setTitle:(NSString *)titleforState:(UIControlState)state;
Ø设置按钮的文字
•- (void)setTitleColor:(UIColor *)color forState:(UIControlState)state;
Ø设置按钮的文字颜色
•
•- (void)setImage:(UIImage *)imageforState:(UIControlState)state;
Ø设置按钮内部的小图片
•
•- (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state;
Ø设置按钮的背景图片
Ø
•设置按钮的文字字体(需要拿到按钮内部的label来设置)
Øbtn.titleLabel.font = [UIFontsystemFontOfSize:13];
•- (NSString *)titleForState:(UIControlState)state;
Ø获得按钮的文字
•
•- (UIColor*)titleColorForState:(UIControlState)state;
Ø获得按钮的文字颜色
•
•- (UIImage *)imageForState:(UIControlState)state;
Ø获得按钮内部的小图片
•
•- (UIImage *)backgroundImageForState:(UIControlState)state;
Ø获得按钮的背景图片
0 0
- UIButton的常见设置
- UIButton和UILabel的常见设置方法
- view的封装、UILabel的常见设置 UIButton的常见设置
- UIButton的title设置
- UIButton的title设置
- UIButton的一些设置
- Swift UIButton 的设置
- UIButton的相关设置
- UIButton 的一些设置
- 设置UIButton字体的大小
- 设置UIButton字体的大小
- UIbutton的一些属性设置
- UIButton 的一些设置方法
- UIButton 的标题属性设置
- UIButton的边框颜色设置
- UIButton, 设置button的背景图片
- iOS设置UIButton的字体
- UIButton的常用属性设置
- svn 常见错误
- Android Tombstone 分析
- angularJs摸态框实例加详细注解
- java 切面编程 AOP(Aspect oriented program)
- Android Design Support Library - FloatingActionButton
- UIButton的常见设置
- 积极管理---要了解各自的同学,也要了解各自的计划.
- “Gradle Version 3.2 is required.” Error
- 关于html的表单
- MyBatis在Spring中简单配置
- 编译原理作业,一介逻辑公式实例化
- 趣拍云:2016年短视频大数据研究报告
- java最简单的效率检测
- 如何让孩子爱上设计模式 —— 1.面向对象相关概述