How to download data to the table without lagoons



  • Up to the last box in the table by means of the delegate ' s method tableView(tableView:, willDisplayCell:, UITableViewCell:, forRowAtIndexPath:)♪ I'm sending a message to the presenter who starts to load the data from the server, in the calbeque of the presentationer's method, updating the data through ♪ tableView.reloadData()at the time of the update of the table, the animation scrubs. How should the data be updated so that this is not the case?



  • Try adding a box like:

    [self.tableView beginUpdates]; [self.tableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation:UITableViewRowAnimationFade]; [self.tableView endUpdates];

    Also check what's stopping it from updating, not filling the cells with the data. For that, try to remove empty cells. If it helps, optimize. cellForRow




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2