jumartin / Calendar

A set of views and controllers for displaying and scheduling events on iOS
MIT License
701 stars 203 forks source link

connect core data with calendar #9

Open VasilikiSieben opened 8 years ago

VasilikiSieben commented 8 years ago

how can fetch(reload) events from core data? where is the code to load events to show?

jumartin commented 8 years ago

Hi, The default controllers provided by the library rely on EventKit to get the events - have a look at MGCDayPlannerEKViewController or MGCMonthPlannerEKViewController. If you want to use Core Data as a backend, you have to implement your own data source which must adopt MGCDayPlannerViewDataSource protocol (or MGCMonthPlannerViewDataSource, depending on which type of calendar view you're using).

Naqash79 commented 8 years ago

Hi VasilikiSieben , Were you able to do it? if so can u share your experience

VasilikiSieben commented 8 years ago

Hi, I tried use Core Data as s backend, but I am not finished yet. I wanted to ask you if it is necessary for your library to ask user permission to calendar?It is able to use it without access to calendar?

jumartin commented 8 years ago

Only if you use EventKit do you have to request access to calendar. Thus this is implemented only in MGCDayPlannerEKViewController and MGCMonthPlannerEKViewController dedicated controllers.