Created
August 30, 2014 13:21
-
-
Save almostintuitive/312355bcb6aada3475ae to your computer and use it in GitHub Desktop.
SwipeToPeepCell-3.m
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
- (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