-(void)scrollViewDidScroll:(UIScrollView
*)scrollView{
if (scrollView.contentOffset.y > _offset) {//如果当前位移大于缓存位移,说明scrollView向上滑动
}
_offset = scrollView.contentOffset.y;//将当前位移变成缓存位移
if (scrollView.contentOffset.y > _offset) {//如果当前位移大于缓存位移,说明scrollView向上滑动
}
_offset = scrollView.contentOffset.y;//将当前位移变成缓存位移
}