Can you use dot notation in the key parameter of NSSortDescriptor: sortDescriptorWithKey :?

I am looking forward to a problem when I have actual data. I have a graph that I want to display in a UITableView. The graph has a lot to do with the entity service, and the service has an attribute date. I want to sort Count entries. Service Data.data. Can I use @ "Service.date" in the key parameter?

TIA Mark

+3
source share
1 answer

Yes. The key argument to sortDescriptorWithKey:...may be the key path, which consists of several dot-separated keys.

+3
source

All Articles