cocoa - KVC select by criteria -
I have the objects selected from the core objects. I choose from a subset of this set of conditions, which is in conformity with the condition. How to do this
If I read you correctly, then you want to filter your condition based on a condition By some objects in it?
You can do this by using NSPredicate
and call
NSPredicate * predicate = [NSPredicate predicateWithFormat: @ "attribute == Yes"]; NSArray * filtered array = [original array filtered attribution: prediction];
You can read more about using predicates.
You can filter your NSFetchRequest
directly while getting data from the core Can use predicates for data
Comments
Post a Comment