【发布时间】:2011-11-01 21:54:12
【问题描述】:
有没有一种方法可以模拟子选择方法,而无需提取您想要限制的整个集合。
在这个问题中 Core Data: Query objectIDs in a predicate?
他们演示了如何使用 not in limit。但它显示使用您想要限制的对象列表。
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"NOT (self IN %@)", arrayOfExcludedObjects];
这是执行此操作的唯一方法,还是有办法限制子查询,这样我就不必获得要限制的查询的结果。
【问题讨论】:
标签: ios core-data nspredicate