继承UIScrollView的delegate,实现delegate里下面的两个方法
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (!decelerate) {
if (!scrollView.dragging && !scrollView.decelerating) {
[self scrollViewDidEndScroll];
}
}
}
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
if (!scrollView.dragging && !scrollView.decelerating) {
[self scrollViewDidEndScroll];
}
}
- (void)scrollViewDidEndScroll {
NSLog(@"--already-stop---");
}