TBEmptyDataSet icon indicating copy to clipboard operation
TBEmptyDataSet copied to clipboard

UITableView state not maintained properly

Open sanju-naik-zz opened this issue 6 years ago • 0 comments

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.

sanju-naik-zz avatar Jan 08 '19 05:01 sanju-naik-zz