Filter Core Data results by property IN array Filter Core Data results by property IN array ios ios

Filter Core Data results by property IN array


Try this:

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"tid IN %@", filterArray];[request setPredicate:predicate];

Have a look at the Aggregate Operations in the Predicate Programming Guide.

EDIT

Have a look at NSPredicate iPhone 3.2 SDK Core Data “IN clause” NSInvalidArgumentException exception. It's same error you have. The problem was a typo in the column/attribute name. The syntax should be alright, it can't just find tid.


matomo