我已經創建了代碼,使用事件工具箱框架以編程方式在iPhone日曆中添加了自定義事件。如何使用iphone模擬器檢查iPhone日曆中添加的自定義事件
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];
我用上面的代碼,我想您在iphone日曆將這些事件是否添加或not.I有最新的SDK 4.0版本,但我的設備是第一代iPod的device.so我不能在ipod中啓動我的應用程序(由於不支持eventkit框架)。是否有可能在iphone模擬器中檢查此問題?或者其他任何想法來檢查icalendar中添加的這個自定義事件?
請幫幫我。在此先感謝.......