Core Data NSPredicate “deleted == NO” does not work as expected
问题 I am using UIManagedDocument with Parent Child context. In my child context I do the following Code 1 NSSet *results = [self.event.memberships filteredSetUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) { return ([[evaluatedObject deleted] boolValue] == NO); }]]; Above code returns the expected results (only Not deleted members for the event). Code 2 But this code does not. It fetches all records. NSPredicate *predicate = [NSPredicate