I get a NSInternalInconsistencyException exception. It says : '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).

But before the update last time when numberOfRowsInSection was called it returned 0.

Do you have any idea?

this is what I see:

  1. numberOfRowsInSection return 0
  2. self.tableView.insertRowsAtIndexPaths([newIndexPath], withRowAnimation: .Fade)
  3. numberOfRowsInSection get called and return 1
  4. crash

Related posts

Recent Viewed