I have application that need to write events into native calendar. Writing works fine if added EKEvent doesnt contain EKAlarm. If i include this lines of code:
EKAlarm *alarm = [EKAlarm alarmWithRelativeOffset:-30];
event.alarms = [NSArray arrayWithObject:alarm];
Calendar item is not not added. It seems like execution of this line of code is not performed at all:
[store saveEvent:event span:EKSpanThisEvent commit:YES error:&err];
Ideas what can be the problem?