Skip to content

onurersel/UIView-GestureCallback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38f113f · Feb 16, 2016

History

10 Commits
Jul 27, 2015
Jul 27, 2015
Jul 27, 2015
Jul 23, 2015
Jul 23, 2015
Feb 13, 2016
Jul 27, 2015
Jul 27, 2015
Jan 29, 2016

Repository files navigation

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

About

Category of block wrappers for UIGestureRecognizer's

Resources

License

Stars

Watchers

Forks

Packages

No packages published