iPhone谓词:各一个
我想知道是否可以使用指定“其中一个”的谓词来运行查询。他们在谓词文档中似乎没有类似的内容。
感谢任何帮助或资源。
更新:我想返回包含重复项的列中的每个唯一实例。
I was wondering if it was possible to run a query using a predicate specifying "one of each." They do not seem to have anything similar to this in the predicate documentation.
Appreciate any help or resources.
UPDATE: I want to return every unique instance in a column which contains duplicates.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
获取
NSPredicate
的结果并将其放入NSSet
(或其可变子NSMutableSet
)。根据定义,集合不包含重复项。Take the results of your
NSPredicate
and put them into anNSSet
(or its mutable childNSMutableSet
). By definition, a set contains no duplicates.