Latest 1.0.0
License MIT
Platforms ios 7.0, requires ARC

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.


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);



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


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": "",
    "license": "MIT",
    "authors": {
        "GarveyCalvin": "[email protected]"
    "platforms": {
        "ios": "7.0"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": [
    "requires_arc": true

Pin It on Pinterest

Share This