1
我正在使用s選擇器(localizedCaseInsensitiveCompare :),但我還需要使用Diacritic選擇器。CoreData:NSSortDescriptor - 到A,à到A(@selector)
代碼:
NSFetchRequest *request = [[NSFetchRequest alloc] init];
request.entity = [NSEntityDescription entityForName:@"CompanyActivity" inManagedObjectContext:context];
request.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:descriptionLanguageKey
ascending:YES
selector:@selector(localizedCaseInsensitiveCompare:)]];
我怎麼能同時使用?
感謝,
RL
因爲我希望á位於A部分之下。 –