使用scrollviewdid 方法有可能跟tableView发生冲突 使用拖拽 完美解决
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{
CGPoint translation = [scrollView.panGestureRecognizer translationInView:scrollView.superview];
if (translation.y>0) {//下滑
}else if(translation.y<0){//上滑
}
}
```
网友评论