Episode 4 - Crash deleting ingredient
Toby Ambrose
3 posts
|
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:
with the following output in the console:
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. :-) |
Toby Ambrose
3 posts
|
Not entirely sure I understand this, but I managed to eliminate the crash, so I’m back on track. I apparently missed changing the ingredient arrays to mutable ones (screencast 3). So, from the error I posted, it seems the call to remove an ingredient failed. Then the post-delete number of rows for the table did not equal the original number minus the number removed. Given that though, shouldn’t the screencast example with the following stub have failed too?
In that case, wouldn’t there be fewer rows in the tableView than the ingredients array and shouldn’t that cause the same error I was seeing? |
Blake Bowling
1 post
|
I have the exact same problem… but im venturing off the videos and incorporating sections into the list.. and mine is crashing (with the same error) at - (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView{
very strange to me as the testing I have it setup, the number of sections isnt changing. I have tried a dynamic as well as a static return. if anyone has any brilliant ideas, please let me know. |
Matthew
1 post
|
I had this problem with Pragmatic iPhone Tutorial 4: 2009-01-03 20:26:25.683 Receipes[33856:20b] * Assertion failure in -[UITableView _endCellAnimations], /SourceCache/UIKit/UIKit-747.36.52/UITableView.m:679 I searched on Google and found this and other posts. After reading these I ran the code against Simulator 2.1 and all was fine. My Phone is running 2.2 and I have been simulating 2.2 for the last hour. Any help on explaining this would be appreciated. |
4 posts, 3 voices
