When delete cell and [self loadObjects] in PFQueryTableViewController, it gets Assertion failure in -[UITableView _endCellAnimationsWithContext:]

前端 未结 1 1904
借酒劲吻你
借酒劲吻你 2021-01-15 19:46

I am willing to delete cell and show reload tableView in cell of PFQueryViewController.

But, when I delete and refresh TableView, I have get error:\" *** Assertion f

相关标签:
1条回答
  • 2021-01-15 20:44

    I had the same problem, after upgrading to a newer parse sdk. Don't know what version exactly, but here's how I solved my Assertion Failure, simply by calling reloadData after loadObjects:

    PFObject * object = [self.objects objectAtIndex: indexPath.row];
     [object deleteInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
         if (succeeded) {
             [self loadObjects];
             [self.tableView reloadData];
         }else{
            //handle your error
         }
     }];
    
    0 讨论(0)
提交回复
热议问题