Playing alarm in iphone with EKEvent

Solutions Collect From Internet About “Playing alarm in iphone with EKEvent”

I think you can manipulate this code to play alarm using EKEvent..

NSMutableArray *myAlarmsArray = [[NSMutableArray alloc] init];

EKAlarm *alarm1 = [EKAlarm alarmWithRelativeOffset:-3600]; // 1 Hour
EKAlarm *alarm2 = [EKAlarm alarmWithRelativeOffset:-86400]; // 1 Day

[myAlarmsArray addObject:alarm1];
[myAlarmsArray addObject:alarm2];

event.alarms = myAlarmsArray;
[myAlarmsArray release];

I think this small blog post will be useful to you…Hope this helps…cheers