标签:
- (void) scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat newY = scrollView.contentOffset.y; if (newY != _oldY) { if (newY > _oldY && (newY - _oldY) > 100) { NSLog(@"Down"); _oldY = newY; } else if (newY < _oldY && (_oldY - newY) > 100) { NSLog(@"Up"); _oldY = newY; } } }
ps: 10这个值根据自己的实际情况来修改..
标签:
原文地址:http://www.cnblogs.com/Rinpe/p/5485991.html