我有这个谓词:
NSPredicate * thePredicateKeyword = [NSPredicate predicateWithFormat:@"any keywords.thekeyword beginswith [cd] %@", searchTerm];
基本上每个企业都与关键字有多对多的关系。
但假设我没有一个 searchTerm。假设我有一个数组。
我该怎么做?
我想我可以为每个做谓词并将它们与或谓词等结合起来。
但是,有没有办法使用in
关键字或类似的东西更有效地做到这一点?