Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide table view until all the data is loaded - IOS

I'm trying to hide table view until all the data is loaded. I found this question:

UITableView - hide all groups/cells while data is loading

They say about setting sections to 0 until all data is loaded, and then reload cells and table view, but they don't detail how to do it.

Many thanks

like image 327
theomen Avatar asked Apr 01 '12 21:04

theomen


1 Answers

you can hide your table view

 [self.tableView setHidden:YES];

Until you get all your data and you make it visible

 [self.tableView setHidden:NO];
like image 167
Imrane Avatar answered Oct 22 '22 18:10

Imrane