I use the following code to create an event and display a popup asking me to save the event:
EKEventStore *eventStore = [[EKEventStore alloc] init]; EKCalendar *calendar = [eventStore defaultCalendarForNewEvents]; EKEvent *event = [EKEvent eventWithEventStore:eventStore]; event.calendar = calendar; event.title = [NSString stringWithFormat:@"Event: %@", [self.event title]]; event.location = self.event.location; event.notes = [self stringByStrippingHTML: [self.event description]]; event.startDate = [self.event startDate]; event.endDate = [self.event endDate]; NSTimeInterval alarmOffset = -1*60*60;
This works fine, except that the alarm property of the event is not set, as you can see, with the image below:

If I save the event before displaying the view controller, it will receive the set alarm.
Please note that I am using the LLVM compiler, so don't worry about not releasing stuff!
That
Ross
source share