tableView設置isPagingEnabled 使用MJRefresh 導致分頁錯誤偏移

	private let footer: MJRefreshAutoFooter = {
        let footer = MJRefreshAutoFooter()
        footer.isAutomaticallyChangeAlpha = true
        ///底部控件 觸發刷新
        footer.triggerAutomaticallyRefreshPercent = -10
        return footer
    }()
	if #available(iOS 11.0, *) {         
	   	tableView.contentInsetAdjustmentBehavior = .never
	} else {
       	automaticallyAdjustsScrollViewInsets = true;
    }       
    tableView.estimatedRowHeight = 0
    ///請求前設置
    tableView.isPagingEnabled = false
    ///請求成功後設置
    tableView.isPagingEnabled = true
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章