Case insensitive match
This commit is contained in:
parent
7b527121b3
commit
03c270a538
|
@ -113,7 +113,7 @@
|
|||
{
|
||||
NSManagedObjectContext *moc = [self managedObjectContext];
|
||||
NSFetchRequest * fetch = [NSFetchRequest fetchRequestWithEntityName:@"MATagDescription"];
|
||||
[fetch setPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH %@", prefix]];
|
||||
[fetch setPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH[cd] %@", prefix]];
|
||||
|
||||
NSArray * descs = [moc executeFetchRequest:fetch error:nil];
|
||||
NSMutableArray * names = [NSMutableArray arrayWithCapacity:[descs count]];
|
||||
|
|
Loading…
Reference in New Issue
Block a user