Open
Description
Hi, there was one condition to show nomoredata. All data was fetched when first loading. "scrollView.contentOffset.y + scrollView.contentInset.top ==0" made "self.alpha = 0.0"; when scroll the tableview, enter the condition of instant return. so the footer with nomoredata was 0 alpha, did not display.
The following was one fix:
guard isRefreshing == false && isAutoRefreshing == false && noMoreData == false && isHidden == false else {
//++++++++++++++++++++
if noMoreData { //不满一页的时候,需要加载
if scrollView.contentSize.height <= 0.0 || scrollView.contentOffset.y + scrollView.contentInset.top <= 0.0 {
self.alpha = 0.0
} else {
self.alpha = 1.0
}
}
//++++++++++++++++++++----end
// 正在loading more或者内容为空时不相应变化
return
}
Metadata
Metadata
Assignees
Labels
No labels