IButton - 按钮控件

IButton 是 UIButton 的继承, 实现了控件的流式布局, 同时, 你仍然可以使用 UIButton 的所有功能和属性.

XML

<button style="background: #f33;">Click Me</button>

API

@interface IButton : IView

@property (nonatomic, readonly) UIButton *button;
@property (nonatomic) NSString *text;

+ (IButton *)buttonWithText:(NSString *)text;

@end

Demo

IButton *submit = [IButton buttonWithText:@"Login"];