I\'m looking for a way to use NSPredicate to set a LIKE condition to fetch objects. In addition to that, an OR would be useful as well
NSPredicate
LIKE
OR
NSString *_mySearchKey = @"James"; NSPredicate *_myPredicate = [NSPredicate predicateWithFormat:@"(firstname CONTAINS[cd] %@) OR (lastname CONTAINS[cd] %@)", _mySearchKey, _mySearchKey];