Latest 0.0.1
Homepage https://github.com/onurersel/UIView-GestureCallback
License MIT
Platforms ios 6.0, requires ARC
Authors

Category of block wrappers for UIGestureRecognizers

Installation

Copy UIView-GestureCallback.h and UIView-GestureCallback.m files to your project. Or use CocoaPods

pod 'UIView-GestureCallback'

Usage

#import "UIView+GestureCallback.h"
// Adding tap recognizer
[view addTapGestureRecognizer:^(UITapGestureRecognizer *recognizer) {
    //...
}];

// Remove tap recognizer without storing recognizer object, or looping through .gestureRecognizers array
[view removeTapGestureRecognizer];

Todo

  • wrapper for custom gesture recognizers
  • tests for GestureCallbackValues storage logic

Latest podspec

{
    "name": "UIView-GestureCallback",
    "version": "0.0.1",
    "authors": {
        "Onur Ersel": "[email protected]"
    },
    "social_media_url": "https://twitter.com/ethestel",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/onurersel/UIView-GestureCallback",
    "source": {
        "git": "https://github.com/onurersel/UIView-GestureCallback.git",
        "tag": "0.0.1"
    },
    "summary": "Category of block wrappers for UIGestureRecognizer's",
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "UIView+GestureCallback.{h,m}"
}

Pin It on Pinterest

Share This