5
我與EventKit框架iOS 5中工作,我用下面的代碼成功添加一個事件的iOS日曆現在如何如何使用eventKit框架特定日期
EKEventStore *eventDB = [[EKEventStore alloc] init];
EKEvent *myEvent = [EKEvent eventWithEventStore:eventDB];
myEvent.title = @"New Event";
myEvent.startDate = [[NSDate alloc] init];
myEvent.endDate = [[NSDate alloc] init];
myEvent.allDay = YES;
[myEvent setCalendar:[eventDB defaultCalendarForNewEvents]];
設置提醒(報警)我應該爲這個事件添加警報(提醒)嗎?
感謝 蘭吉特