Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 651 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 651 Bytes

UIView-GestureCallback

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