Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
939
41
Tokyo, Japan
I have data in CoreData with code like "101001", "101002", "201001"... and so on, I want to select all data with code like "???001" (??? is any digit), what can I do?

I got it as below, is this a nice way?
Code:
NSPredicate *pre = [NSPredicate predicateWithFormat:@"code like %@", @"???001"];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.