Created
September 16, 2014 14:56
-
-
Save zmcartor/b9d25d1c6319428d400c to your computer and use it in GitHub Desktop.
ScrollView direction
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
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { | |
CGPoint translation = [scrollView.panGestureRecognizer translationInView:scrollView.superview]; | |
if(translation.y > 0) | |
{ | |
NSLog(@"dragging downwards!"); | |
} else | |
{ | |
NSLog(@"dragging up!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment