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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…