判断scrollView是否滚动到底部

-(void)scrollViewDidScroll:(UIScrollView*)scrollView

{

CGFloat height = scrollView.frame.size.height;

CGFloat contentOffsetY = scrollView.contentOffset.y;

CGFloat bottomOffset = scrollView.contentSize.height- contentOffsetY;

if(bottomOffset <= height)

{

//在最底部

self.currentIsInBottom=YES;

}

else

{

self.currentIsInBottom=NO;

}

}

参考文章:http://blog.csdn.net/glt_code/article/details/53423195/

你可能感兴趣的:(判断scrollView是否滚动到底部)