When you call -reloadData on a table view instance, does it make all UITableViewDataSource calls async?
Thank you.
When you call -reloadData on a table view instance, does it make all UITableViewDataSource
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This method actually just removes all the
UITableViewCellviews 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
contentSizeis set correctly after the call. On the other hand,tableView:cellForRowAtIndex:is not called until the table is repainted.