I was trying to use base Predicate to eliminate old records from being searched. The predicate works. But TableView crashes with the following message.
PREDICATE: self.basePredicate = NSPredicate(format: "start >= %@", Date() as CVarArg)
CRASH MESSAGE:
reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (42) must be equal to the number of rows contained in that section before the update (30), plus or minus the number of rows inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
If I am not using the right procedure to restrict the records, please help.
Thank you.
I was trying to use base Predicate to eliminate old records from being searched. The predicate works. But TableView crashes with the following message.
PREDICATE: self.basePredicate = NSPredicate(format: "start >= %@", Date() as CVarArg)
CRASH MESSAGE:
reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (42) must be equal to the number of rows contained in that section before the update (30), plus or minus the number of rows inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
If I am not using the right procedure to restrict the records, please help.
Thank you.