【发布时间】:2023-03-24 03:03:01
【问题描述】:
我正在使用 s 选择器 (localizedCaseInsensitiveCompare:),但我还需要使用变音符号选择器。
代码:
NSFetchRequest *request = [[NSFetchRequest alloc] init];
request.entity = [NSEntityDescription entityForName:@"CompanyActivity" inManagedObjectContext:context];
request.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:descriptionLanguageKey
ascending:YES
selector:@selector(localizedCaseInsensitiveCompare:)]];
如何同时使用?
谢谢,
强化学习
【问题讨论】:
标签: core-data nssortdescriptor