Skip to content

overriding basePredicate results in a crash #17

@syedtariq2013

Description

@syedtariq2013

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions