I am developing one simple application related to iPhone calendar. I am able to add the calendar event to from my application to iPhone calendar. As soon as I save event I need to get the saved event ID . How can i achieve this. Below is the code for saving an event.
EKEventStore *eventStore = [[EKEventStore alloc] init];
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = @"xxx";
event.notes = @"yyy";
event.startDate = [[NSDate alloc] init];
event.endDate = [[NSDate alloc] initWithTimeInterval:600 sinceDate:event.startDate];
[event setCalendar:[eventStore defaultCalendarForNewEvents]];
NSError *err;
[eventStore saveEvent:event span:EKSpanThisEvent error:&err];
Thanks in advance.
For Saving the event call this method , and print all save event with identifiers…