When you call -reloadData
on a table view instance, does it make all UITableViewDataSource
calls async?
Thank you.
This method actually just removes all the UITableViewCell
views from the table. The data source delegate methods are called when the table is repainted.
So, it's asynchronous.
Edit:
Actually, some calls ARE synchronous. The number of sections & rows and row heights are updated immediately, so, for example contentSize
is set correctly after the call. On the other hand, tableView:cellForRowAtIndex:
is not called until the table is repainted.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With