Created
June 21, 2011 05:07
-
-
Save chrishulbert/1037281 to your computer and use it in GitHub Desktop.
Baby tap gesture - like UITapGestureRecognizer but accepts any number of fingers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // BabyTapGesture.h | |
| // Created by Chris ([email protected]) on 21/06/11. | |
| #import <Foundation/Foundation.h> | |
| #import <UIKit/UIGestureRecognizerSubclass.h> | |
| @interface BabyTapGesture : UIGestureRecognizer | |
| @end | |
| ---- | |
| // BabyTapGesture.m | |
| // Created by Chris ([email protected]) on 21/06/11. | |
| #import "BabyTapGesture.h" | |
| @implementation BabyTapGesture | |
| - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { | |
| self.state = UIGestureRecognizerStateRecognized; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment