Reputation: 63
NSPredicate *eventsForThisYear = [NSPredicate eventPredicateWithStartDate:startDate endDate:endDate calendars:[[CalCalendarStore defaultCalendarStore] calendars]];
NSArray *events = [eventDB eventsMatchingPredicate:eventsForThisYear];
In the following code I got an error saying 'CalCalendarStore' is undeclared (first use in this function)
In xcode 4.2. I did not find any CalCalendarStore
Framework.
Upvotes: 1
Views: 558
Reputation: 44633
You seem to be using Calendar Store framework which is unavailable on iOS. In iOS, you need to use EventKit
.
Here
's a tutorial. There are many others available online.
Upvotes: 1