NSPredicate of special characters - iPhone
Posted
by ncohen
on Stack Overflow
See other posts from Stack Overflow
or by ncohen
Published on 2010-03-19T03:17:47Z
Indexed on
2010/03/19
3:21 UTC
Read the original article
Hit count: 361
Hi everyone, I'm trying to make a predicate that includes special characters
For example:
[[myIngredients filteredSetUsingPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH[c] %@", [alphabet objectAtIndex:idx]]];
Here I will get all the ingredient which starts with (let say for idx = 5) 'e'. As I have to do my app in english and french, some ingredients start with special character like 'é' or even 'œ' for 'o'. How can I include these special characters in my predicate?
Best
© Stack Overflow or respective owner