I’m trying to create a habit tracker using CoreData
and JTAppleCalendar
.
I want the user to be able to create a habit and then when completed on a set date it saves it for the day. The interface would show a calendar which the user can set habits for certain dates.
Struggling to work out how to implement the model with the calendar to get this working.
How should I construct the model for CoreData
?
Here is one way to implement this.
When the user creates an object for Habit, create the corresponding ReminderObjects, for that Habit, for all the dates between startDate and endDate as the fireDate of the ReminderObjects.
Now when displaying in the JTAppleCalendarView