//监视scrollview是否滚动到底,到底则显示更多按钮

- (void)scrollViewDidScroll:(UIScrollView *)scrollView{

    [refreshHeaderViewegoRefreshScrollViewDidScroll:scrollView];//下拉刷新

    CGPoint contentOffsetPoint = _tableView.contentOffset;

    CGRect frame = _tableView.frame;

    if (contentOffsetPoint.y == _tableView.contentSize.height - frame.size.height || _tableView.contentSize.height < frame.size.height

    {

        NSLog(@"scroll to the end");

        self.btnLoad.hidden = NO;

    }

}

相关文章:

  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-09-16
  • 2021-12-10
  • 2021-08-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案