1。高度:
在ios7中,默认的高度是44
2。初始化:
+ (id) buttonWithType : (UIButtonType) buttonType
UIButtonType : UIButtonTypeCustom 默认 when render an image
UIButtonType。。。。
3。相关方法:
- (void) setTitle : (NSString *) title forState : ( UIControlState) state ;
- (void) setBackgroundImage : (UIImage *) image forState : (UIControlState) state
state : UIControlStateNormal / UIControlStateHighlighted (高亮,即按下去时的状态)
4。事件:
UIControlEventTouchDown
UIControlEventTouchUpInside