I’ve been following tutorial for table view while building a Dream Journal App. After I added multiple selection and deleting I’m getting the following error when I try to edit my list items:
‘NSInternalInconsistencyException’, reason: ‘Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the update (1), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).’
I’ve compared the code with the solution but cannot find where I have error. I’ve just started using swift so I’ll be grateful for any help. I’ve pushed my project to github here: GitHub - Ania-chan/DreamJournal: My project for Polyglottal Week
Also because it’s a dream journal I need input longer than the current UITextField. Can I just change it to UITextView or is there a better way?
Thanks in advance!