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