MTControl -


BSD
iOS
Objective-C

软件简介

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];
    }];
}];