tags:

views:

54

answers:

0

Hi,

I have founded the code, Programmatically added custom event in the iPhone Calendar,using event kit framework.

EKEventStore *eventStore = [[EKEventStore alloc] init];

EKEvent *event  = [EKEvent eventWithEventStore:eventStore];
event.title     = @"EVENT TITLE";

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]; 

I used the above code and i want to check whether these event is added in iphone calendar or not.I have latest sdk 4.0 version, but my device is first generation of ipod device.so i can't launch my application in ipod (due to eventkit framework not supported).Is this possible to check this in iphone simulator ? Or anyother thoughts to check this custom event added in icalendar ?

Please help me . Thanks in advance.......