for my project I am using the EventKit to access the calendar on an iPhone (iOS 5.1.1) and get all Events from the default calendar. That works fine. For each event I check hasAlarms, if true, I want to know the time of the alarm. So, something like this:
for (EKEvent *ev in allEventsArray){
if ([ev hasAlarms]){
NSArray *alarms = ev.alarms;
for (EKAlarm *alarm in alarms){
NSLog(@"%@",alarm.absoluteDate);
}
}
}
The problem is that I get "(null)" for the NSLog. I have no idea what I am doing wrong...
Can anybody help? Many thanks in advance!