Created
May 28, 2013 04:23
-
-
Save danmartyn/5660507 to your computer and use it in GitHub Desktop.
Handle Long Press
This file contains 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
- (void)handleLongPress:(UILongPressGestureRecognizer*)sender { | |
if (sender.state == UIGestureRecognizerStateEnded) { | |
NSLog(@"UIGestureRecognizerStateEnded"); | |
//Do Whatever You want on End of Gesture | |
} | |
else if (sender.state == UIGestureRecognizerStateBegan){ | |
NSLog(@"UIGestureRecognizerStateBegan."); | |
//Do Whatever You want on Began of Gesture | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment