Latest 1.0.0
Homepage https://github.com/GarveyCalvin/GCRespond
License MIT
Platforms ios 7.0, requires ARC
Authors

Make the block as call back from action of UIControl.

GCRespond is support iOS 7 and newer.

GCRespond was created by GarveyCalvin and is maintained by the former.

Sample

UISteper, UIButton, UISlider …

[self.steper gc_addControlEvents:UIControlEventValueChanged action:^(UIStepper*  _Nonnull sender) {
    NSLog(@"steper value change: %f", sender.value);
}];

[self.myButton gc_addControlEvents:UIControlEventTouchUpInside action:^(id  _Nonnull sender) {
    NSLog(@"sender is %@", sender);
}];

[self.slider gc_addControlEvents:UIControlEventValueChanged action:^(UISlider*  _Nonnull sender) {
    NSLog(@"slider value change: %f", sender.value);
}];

Installation

manual

  1. Drag GCRespond folder to your project using the Navigator.
  2. add import "UIControl+GCResponder.h" code when you use.

License

BlocksKit is maintained under the MIT license. The project itself is free for use in any and all projects. You can use BlocksKit in any project, public or private, with or without attribution – though we prefer attribution! It helps us.

Latest podspec

{
    "name": "GCRespond",
    "version": "1.0.0",
    "summary": "a block action, use on iOS",
    "description": "Make the block as call back from action of UIControl.",
    "homepage": "https://github.com/GarveyCalvin/GCRespond",
    "license": "MIT",
    "authors": {
        "GarveyCalvin": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/GarveyCalvin/GCRespond.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "GCRespond",
        "GCRespond/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This