Skip to content

Instantly share code, notes, and snippets.

@danmartyn
Created May 28, 2013 04:23
Show Gist options
  • Save danmartyn/5660507 to your computer and use it in GitHub Desktop.
Save danmartyn/5660507 to your computer and use it in GitHub Desktop.
Handle Long Press
- (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