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?
I got it as below, is this a nice way?
Code:
NSPredicate *pre = [NSPredicate predicateWithFormat:@"code like %@", @"???001"];