开发者

Core Data - GROUP BY

开发者 https://www.devze.com 2023-01-19 02:53 出处:网络
I am trying to group results returned by Core Data. I read that you need to use \"SortDescriptors\" with a selector but I cant seem to get it to work?

I am trying to group results returned by Core Data. I read that you need to use "SortDescriptors" with a selector but I cant seem to get it to work?

I am trying to return group'ed "unique" name values?

http://developer.apple.com/library开发者_StackOverflow社区/ios/#documentation/cocoa/Conceptual/SortDescriptors/Concepts/Creating.html


Actually, I think you want @distinctUnionOfObjects. See the Xcode Documentation: Key-Value Coding Programming Guide: Collection Operators.


try using @distinctUnionOfArrays.contactNumber to get the objects

0

精彩评论

暂无评论...
验证码 换一张
取 消