Skip to content

Instantly share code, notes, and snippets.

@almostintuitive
Created August 30, 2014 13:21
Show Gist options
  • Save almostintuitive/312355bcb6aada3475ae to your computer and use it in GitHub Desktop.
Save almostintuitive/312355bcb6aada3475ae to your computer and use it in GitHub Desktop.
SwipeToPeepCell-3.m
- (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)gestureRecognizer {
if ([gestureRecognizer class] == [UIPanGestureRecognizer class]) {
CGPoint velocity = [gestureRecognizer velocityInView:nil];
if (fabsf(velocity.x) > fabsf(velocity.y) ) {
return YES;
}
return NO;
}
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment