As Dave DeLong said, you can use:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"UPC ==[c] %@ OR ItemID ==[c] %@", aUPCCode,aUPCCode];
Edit:
Use ==[c]
instead of ==[cd]
or you get accents too (abcd == àbcd
).
As Dave DeLong said, you can use:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"UPC ==[c] %@ OR ItemID ==[c] %@", aUPCCode,aUPCCode];
Edit:
Use ==[c]
instead of ==[cd]
or you get accents too (abcd == àbcd
).