-
Notifications
You must be signed in to change notification settings - Fork 256
need to show noMoreData in the first page #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In order to display "no More Data" footer to append the first page[ e.g. 5 items/ 10 paging]. so fixit can replaced with the following : and, open var noMoreData = false { |
could you confirm this as one problem? If so, I will expect it fix as soon as possible with new pod. Thanks |
@Jenus you can use DZNEmptyDataSet for it |
Same request. Can not use DZNEmptyDataSet, because first page has data, just data count less than page size, so need to call noMoreData in first page. |
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
The text was updated successfully, but these errors were encountered: