-(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if(!decelerate) {
BOOL dragToDragStop = scrollView.tracking&& !scrollView.dragging&& !scrollView.decelerating;
if(dragToDragStop) {
[self scrollViewDidEndScroll];
}
}
}
-(void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
BOOL scrollToScrollStop = !scrollView.tracking&& !scrollView.dragging&& !scrollView.decelerating;
if(scrollToScrollStop) {
[self scrollViewDidEndScroll];
}
}
- (void)scrollViewDidEndScroll {
//在这里写监听滑动停止要做的事
}
网友评论