Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumolari/lxtouchgesturerecognizer
Cocoapod for touch gesture detailed in http://lxcid.com/2015/01/01/highlight-with-gesture-recognizer/
https://github.com/sumolari/lxtouchgesturerecognizer
Last synced: 24 days ago
JSON representation
Cocoapod for touch gesture detailed in http://lxcid.com/2015/01/01/highlight-with-gesture-recognizer/
- Host: GitHub
- URL: https://github.com/sumolari/lxtouchgesturerecognizer
- Owner: Sumolari
- License: mit
- Created: 2016-11-13T10:53:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T07:18:08.000Z (over 7 years ago)
- Last Synced: 2024-10-11T23:32:08.412Z (about 1 month ago)
- Language: Objective-C
- Size: 60.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![platforms](https://img.shields.io/cocoapods/p/LXTouchGestureRecognizer.svg) [![pod version](https://img.shields.io/cocoapods/v/LXTouchGestureRecognizer.svg)](https://cocoapods.org/pods/LXTouchGestureRecognizer) ![license](https://img.shields.io/cocoapods/l/LXTouchGestureRecognizer.svg)
# LXTouchGestureRecognizer
Continuous `UIGestureRecognizer` allowing `UIControl`-like event listening.
See [http://lxcid.com/2015/01/01/highlight-with-gesture-recognizer](http://lxcid.com/2015/01/01/highlight-with-gesture-recognizer) for more details.Complete [documentation](https://sumolari.github.io/LXTouchGestureRecognizer).
# Installation
```ruby
pod 'LXTouchGestureRecognizer', '~> 1.0.0'
```# Usage
## Objective-C
```objective-c
- (void)viewDidLoad {
[super viewDidLoad];LXTouchGestureRecognizer *touchGestureRecognizer = [[LXTouchGestureRecognizer alloc] init];
[touchGestureRecognizer addTarget:self action:@selector(handleTouchUpInside:) forControlEvents:UIControlEventTouchUpInside];
[self.customButtonView addGestureRecognizer:touchGestureRecognizer];
}- (void)handleTouchUpInside:(LXTouchGestureRecognizer *)touchGestureRecognizer {
NSLog(@"Touch Up Inside!");
}
```