Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以使用指定“每个”的谓词来运行查询。他们在谓词文档中似乎没有类似的东西。
感谢任何帮助或资源。
更新:我想返回包含重复项的列中的每个唯一实例。
获取你的结果NSPredicate并将它们放入一个NSSet(或其可变的 child NSMutableSet)中。根据定义,集合不包含重复项。
NSPredicate
NSSet
NSMutableSet