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 failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-3318.93/UITableView.m:1582"
After this error code, I check data in Parse, and the data of deleted cell is deleted.
I watched this Link, but I am not sure why get assertion in my code. When I use [self loadObjects]. https://parse.com/questions/refresh-data-in-a-pfquerytableviewcontroller
if (editingStyle == UITableViewCellEditingStyleDelete) {
PFObject * object = [self.objects objectAtIndex: indexPath.row];
[object deleteInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
if (succeeded) {
[self loadObjects];
}else{
}
}];
Could you please give me some advice ?
assertion failure
. – luk2302warnBlockingOperationOnMainThread()
? – Hot Licks