I’m struggling getting past this one, hopefully someone might be able to help. When I click the Delete button for an ingredient the app crashes in the commitEditingSytle method this line:
[tv deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationLeft];
with the following output in the console:
2008-11-23 12:24:46.526 Recipes[20367:20b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update must be equal to the number of rows contained in that section before the update, plus or minus the number of rows added or removed from that section.'
I’ve diffed my code with the project code several times. From the error is leads me to think that something may not be configured right in IB but I’m not sure what. I’ve double checked the table view has it’s delegate property linked to the File’s Owner. I’m officially stumped. :-)