How to stop UITableView from loading until data has been fetched?

后端 未结 4 1403
栀梦
栀梦 2020-12-28 14:55

I understand that UITableView will call -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath metho

4条回答
  •  抹茶落季
    2020-12-28 15:44

    When you invoke [tableView reloadData], the framework automatically invokes all the data source methods again for the table view cells that are visible currently (not for all the cells of the tableview). So the best approach would be to invoke reloadData every time you get data from the internet.

提交回复
热议问题