Lots of information on NSDates about the place, but I haven't found a clear solution to this.
I have a list of Event
entities, each with potentially many EventSessionTime
s.
Event
<--->> EventSessionTime
In 1 table view I want to display a unique list of days that have Events
, in another table view I want to show the events on a particular day (ordered by time).
To achieve this I currently have 2 NSDates - a day and time - and some overly complicated searching/sorting. I want to remove this redundant information.
With that in mind, how can I:
1) Finding all UNIQUE days with events, no concern about specific time
2) Finding all EVENTS on a particular day (duplicates fine here)
Any tips on how to better achieve this would be great.
Thanks.