Core data CoreData:NSSortDescriptor-&xC1;对Aà;到(@选择器)
我使用的是s选择器(localizedCaseInsensitiveCompare:),但我还需要使用变音选择器 代码: 我怎么能两者都用呢 谢谢Core data CoreData:NSSortDescriptor-&xC1;对Aà;到(@选择器),core-data,nssortdescriptor,Core Data,Nssortdescriptor,我使用的是s选择器(localizedCaseInsensitiveCompare:),但我还需要使用变音选择器 代码: 我怎么能两者都用呢 谢谢 RL您应该使用UILocalizedIndexedCollation对条目进行排序并将其分类到节中。实现这一点的代码在问题中 UILocalizedIndexedCollation的构建是为了能够根据当前的语言设置对每种语言的单词进行分类。Á和Á将放在部分A中。您应该使用UILocalizedIndexedCollation对条目进行排序和分类。实现
RL您应该使用UILocalizedIndexedCollation对条目进行排序并将其分类到节中。实现这一点的代码在问题中
UILocalizedIndexedCollation的构建是为了能够根据当前的语言设置对每种语言的单词进行分类。Á和Á将放在部分A中。您应该使用UILocalizedIndexedCollation对条目进行排序和分类。实现这一点的代码在问题中
UILocalizedIndexedCollation的构建是为了能够根据当前的语言设置对每种语言的单词进行分类。Á和á将放在A节中。因为我希望á在A节下,因为我希望á在A节下。
NSFetchRequest *request = [[NSFetchRequest alloc] init];
request.entity = [NSEntityDescription entityForName:@"CompanyActivity" inManagedObjectContext:context];
request.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:descriptionLanguageKey
ascending:YES
selector:@selector(localizedCaseInsensitiveCompare:)]];