[Checklists] - Ch.20 > crash

Dear all,

the app crashes as soon as I click the DatePicker row.
I checked the code thrice and everything seems there.

The error is quite clear in the Console:

Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: 'Invalid update: invalid number of rows in section 1. The number of rows contained in an existing section after the update (3) must be equal to the number of rows contained in that section before the update (2), plus or minus the number of rows inserted or deleted from that section (2 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).

The solution, though … is obscure to me.
According to the book everything should just work.
And it was before starting to work on the Hide the date picker part.
Thinking I made a type I copy-pasted the code from the book.

The app builds and everything else works except for the Date Picker row not expanding.

Thank you for your help.

EDIT: solved … copied once more the same code, though it was REALLY the same … and it didn’t crash anymore. Mystery …

@notationmaster Glad you managed to sort it out. Cheers! :]

I have almost the same problem; I went through the code twice and I do not see any difference between my code and the book.

The problem is when I try to close the date picker

@marcogt Do you still have issues with this?

This topic was automatically closed after 166 days. New replies are no longer allowed.