I know that fetched results controller have the section name key path can divide fetched results into sections.
But how could I divide NSDate into sections for each day or each month?
Or any other ways to solve this problem?
Thanks.
I know that fetched results controller have the section name key path can divide
Share
What you need to do is to create a transient property on your data object, and then sort your fetched results accordingly. For a TVGuide I’ve worked on, I needed to sort results by airDay, and ended up sorting the events by startDate, and using the transient property for section key name path:
In Event.m:
The matching fetchrequest