iPhone谓词:各一个

发布于 2024-09-12 04:29:21 字数 103 浏览 6 评论 0原文

我想知道是否可以使用指定“其中一个”的谓词来运行查询。他们在谓词文档中似乎没有类似的内容。

感谢任何帮助或资源。

更新:我想返回包含重复项的列中的每个唯一实例。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灵芸 2024-09-19 04:29:21

获取 NSPredicate 的结果并将其放入 NSSet (或其可变子 NSMutableSet)。根据定义,集合不包含重复项。

Take the results of your NSPredicate and put them into an NSSet (or its mutable child NSMutableSet). By definition, a set contains no duplicates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文