Skip to content
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

UITableView state not maintained properly #22

Open
sanju-naik-zz opened this issue Jan 8, 2019 · 0 comments
Open

UITableView state not maintained properly #22

sanju-naik-zz opened this issue Jan 8, 2019 · 0 comments

Comments

@sanju-naik-zz
Copy link

If you set datasource at the beginning when your view loads it starts view with empty state and then loads data which is not quite right. To avoid this I am setting datasource once I have data ready to load So that time either it shows data or empty state. 

tableView.emptyDataSetDataSource = self
tableView.updateEmptyDataSetIfNeeded() IMP - Need to call this after setting data source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant