I'm pretty sure your self.tableView
is nil
.
It's because even if you set self as datasource and delegate, your table will work, but here you seems to have create your UITableView *tableView
but didn't link it through your interface (if you do it with the builder).
Or you can simply call tableView
rather than self.tableView
because the delegate protocole gives you the table.
Just do it and it will work. And then, you can try the solution of Szu.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"Clicked DELETE BUTTON at %i",indexPath.row);
[_recipesMC removeObjectAtIndex:indexPath.row];
[_imagesMC removeObjectAtIndex:indexPath.row];
[tableView reloadData];
NSLog(@"count = %i",[_recipesMC count]);
}