I am working for an iOS App
where I am implementing calendar function as a part. I made my mind not to use EKEvent
for several reasons. Therefore I need to have my own Event
class and my own CalendarController
to display Event graphically. Event
object are being saved as a single row entry in a SQLite database with start and end dates. Everything is fine, but now I need to model recurring events for both saving and displaying.
What is the best way to save the recurring rules inside the Event object and event database? I am thinking to use EKRecurrenceRule
class but... how to get all the Events for today (or for a particular day) from the database effectively rather iterating a lot. Can EKRecurrenceRule
class at least answer the question When is the next occurrence date?
.
iDevices don't have much power and I need to keep my App responsive too.
Are there any framework given to model the problem efficiently?
I expect mostly iOS specific answers. Thanks in advance.