ManthanDalal
ManthanDalal

Reputation: 1073

How to set alarm in iphone calendar application from the our application?

I have implemented event calendar application.In which I have added event data in iphone calendar application from my application successfully.But I also want to add alarm from my application.Please give me some idea about that.

Thanks in advance.

Upvotes: 2

Views: 1152

Answers (1)

BojanG
BojanG

Reputation: 1922

EKEvent *event  = [EKEvent eventWithEventStore:eventStore];
EKAlarm *alarm = [EKAlarm alarmWithRelativeOffset:alarmOffset];
[event addAlarm:alarm];

Upvotes: 2

Related Questions