Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Blank page display error on TableView or CollectionView #460

Open
GeeksChen opened this issue Jun 22, 2020 · 0 comments
Open

Blank page display error on TableView or CollectionView #460

GeeksChen opened this issue Jun 22, 2020 · 0 comments

Comments

@GeeksChen
Copy link

GeeksChen commented Jun 22, 2020

if (([self dzn_shouldDisplay] && [self dzn_itemsCount] == 0 && self.tag == 2222) || [self dzn_shouldBeForcedToDisplay])
if (self.homeDataArray.count) { self.homeTableView.tag = 2220; [self.homeTableView reloadData]; }else{ self.homeTableView.tag = 2222; }
I found a problem while using DZNEmptyDataSet
scenes to be used:
When the tableView is collapsed, I will think that I am a blank tableView. In fact, the cell has data. I think that when the TableView or CollectionView is partitioned, he is not blank, not just by this method to judge numberOfItemsInSection:

My solution Determine whether to display a blank page by judging the data source

@GeeksChen GeeksChen changed the title 在TableView或CollectionView上空白页面展示错误 Blank page display error on TableView or CollectionView Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant