UIButtonAndUITextField
来源:互联网 发布:java微信公众平台框架 编辑:程序博客网 时间:2024/06/16 02:55
UIButton:
在设置属性的时候需要注意,UIButton中默认有
@property(nonatomic,readonly,retain) UILabel *titleLabel; (在UIButton不能创建titleLable属性)
@property(nonatomic,readonly,retain) UIImageView *imageView;
@property(nonatomic,readonly,retain) NSString *currentTitle;
@property(nonatomic,readonly,retain) UIColor *currentTitleColor;
在调用方法的时候容易直接用点语法,导致显示错误,正确调用方法应该是
- (void)setTitle:(NSString *)title forState:(UIControlState)state;
- (void)setTitleColor:(UIColor *)color forState:(UIControlState)state
- (void)setImage:(UIImage *)image forState:(UIControlState)state;
UITextFiled: 常用属性
@property(nonatomic,copy) NSString *text;
@property(nonatomic,copy) NSAttributedString *attributedText;
@property(nonatomic,retain) UIColor *textColor;
@property(nonatomic,retain) UIFont *font;
@property(nonatomic,retain) UIView *leftView;
@property(nonatomic) UITextFieldViewMode leftViewMode;
- UIButtonAndUITextField
- Link layer之device driver
- 事务与两阶段提交
- 48、Rotate Image
- urllib与urllib2区别
- 基于树莓派的舵机控制原理
- UIButtonAndUITextField
- matlab调用c程序
- 助您开启高效编程之旅:10款云端IDE推荐
- 字符串编辑距离与拼写错误检查
- MainLoop.c (4)结构体PGconn 和 PGresult
- CABasicAnimation(基础属性动画)的简单使用
- Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently
- 第二十章 内存等空间管理类的实现
- Oracle,MySQL,SQL Server数据库的数据类型