Writing an NSPredicate for 'CONTAINED_BY' text query
问题 I am trying to construct a query of a Core Data store which retrieves an entity's attribute values when they occur in longer string; i.e, instead of seeking instances where attribute value contains a (shorter) string : request.predicate = [NSPredicate predicateWithFormat:@"carBrand contains[c] 'merced'"] I want to find instances (of the entity) whose attribute values are found 'contained in' an arbitrary (longer) string : NSString* textString = @"Elaine used to drive Audis, but now owns a