Hide table view until all data is loaded - iOS

I try to hide the table view until all the data has been loaded. I found this question:

UITableView - hide all groups / cells during data loading

They talk about setting partitions to 0 until all the data has been loaded, and then reload the cells and table view, but they do not detail how to do this.

Many thanks

+6
source share
1 answer

you can hide the table view

[self.tableView setHidden:YES]; 

Until you get all your data and you make it visible

  [self.tableView setHidden:NO]; 
+12
source

Source: https://habr.com/ru/post/912190/


All Articles