I need an NSPredicate that compares a property to an array of wildcards. Something like...
NSArray *collection = @[@"Jerry*",@"George*",@"Elaine*"];
[NSPredicate predicateWithFormat:@"property LIKE IN %@", collection];
Is this possible?
I need an NSPredicate that compares a property to an array of wildcards. Something like...
NSArray *collection = @[@"Jerry*",@"George*",@"Elaine*"];
[NSPredicate predicateWithFormat:@"property LIKE IN %@", collection];
Is this possible?
Copyright © 2021 Jogjafile Inc.
I ended up using
NSCompoundPredicateto get this done. I was hoping there was a shorter route but it's fairly painless.