MTControl
- 授权协议: BSD
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/mysterioustrousers/MTControl
- 软件文档: https://github.com/mysterioustrousers/MTControl
软件介绍
MTControl 给 iOS 的 UIControl 对象附加了类似 jQuery 风格的事件处理。
示例代码:
UIButton *button = [UIButton buttonWithType:UIButtonTypeContactAdd];
[button touchDown:^(UIEvent *event) {
[_spinner start];
[_model fetchFromServer:@"http://mysterioustrousers.com" success:^(BOOL success){
[_spinner stop];
}];
}];
