NSPredicate too complicated for NSFetchedResultsController

This is my predicate:

fetchReguest.predicate = NSPredicate(format: "ANY users.identifier = %@", String(WLAppSettings.currentUser!.identifier))

When I add a new record, it does not appear in my UITableView.

But when I simplify predicate to:

fetchReguest.predicate = NSPredicate(format: "name BEGINSWITH[c] 'a'")

It appears in my UITableView with nice animation. Everything is fine.

Why complexity of my NSPredicate have influence on work of my NSFetchedResultsController? Is there a way to fix this?

There is a lot of problems with NSFetchedResultsControllerDelegate. I am pretty sure that is because of complexity of NSPredicate. Any ideas?

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.