I'm working in Xcode, and since I'm using Parse, I want to delete a row in the table without using PFQueryTableViewController because when I change UIViewController to PFQueryTableViewController, my app crashes.
Here is my code:
PFObject *object = [self.datasource objectAtIndex:IndexPath.row];
// Remove the row from data model
[object deleteInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
if (succeeded){
[self refresh]; // this is my function to refresh the data
} else {
NSLog(@"DELETE ERROR");
}
}];
PFQueryTableViewController.UIViewController?