Case Insensitive Core Data CONTAINS or BEGINSWITH contraint

core-data, objective-c

Solution

Turns out I need to have a predicate in the form of:

`[NSPredicate predicateWithFormat:@"region=%@ && locality CONTAINS[cd] %@", self.region, query]`

and now it is case insensitive

Problem

I have a predicate that looks like `[NSPredicate predicateWithFormat:@"region=%@ && locality CONTAINS %@", self.region, query];` I want it to match ignoring case. Whats the trick?

Original source