CoreData get distinct values of Attribute

前端 未结 4 2254
轻奢々
轻奢々 2020-12-02 08:06

I\'m trying to setup my NSFetchRequest to core data to retrieve the unique values for a specific attribute in an entity. i.e.

an entity with the follow

4条回答
  •  情深已故
    2020-12-02 08:28

    Give a look at Fetching Specific Property Values, it's not necessary to use a Set to get distinct values.

提交回复
热议问题