【原】UIScrollView判斷是否滾動到底


//監視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;

    }

}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM