Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overriding basePredicate results in a crash #17

Open
syedtariq2013 opened this issue Jul 31, 2017 · 0 comments
Open

overriding basePredicate results in a crash #17

syedtariq2013 opened this issue Jul 31, 2017 · 0 comments

Comments

@syedtariq2013
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant