NSPredicate confusion. Ignoring spaces.
- by Mr. McPepperNuts
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name contains [cd] %@", passdTextToSearchFor];
I have two entries in name: "Test One" and "Test Two." If I search for "test," I get 0 results. But if I search for "test one" or "test two" I get the proper result. The search is ignoring the space.
In reality I want both results if the user searches for "test." Any ideas?
I tried contain and like.