Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onurersel/uiview-gesturecallback
Category of block wrappers for UIGestureRecognizer's
https://github.com/onurersel/uiview-gesturecallback
Last synced: 16 days ago
JSON representation
Category of block wrappers for UIGestureRecognizer's
- Host: GitHub
- URL: https://github.com/onurersel/uiview-gesturecallback
- Owner: onurersel
- License: mit
- Created: 2015-07-23T09:52:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T11:52:28.000Z (almost 9 years ago)
- Last Synced: 2024-11-29T17:59:03.293Z (24 days ago)
- Language: Objective-C
- Homepage:
- Size: 19.5 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```objc
#import "UIView+GestureCallback.h"
``````objc
// 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