-(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/
网友评论