如何使用EventKit编辑日历中的特定事件?

问题描述:

我想以编程方式编辑日历中的特定存储事件。我认为这可以通过事件标识符来完成,但我不知道这样做的正确方法。如何使用EventKit编辑日历中的特定事件?

检查这个库JSCalendarManager它会帮助你很多,并为你的方便准备和抽象所有的方法。

要更新的事件使用下面的方法

/*! 
@method  updateEvent: withTitle: location: startTime: endTime: description: URL: completionHandler: 
@discussion Call this method to retrieve and update an event. 
*/ 
-(void)updateEvent:(NSString *)eventIdentifier 
     withTitle:(NSString *)title 
      location:(NSString *)location 
     startTime:(NSDate *)start 
      endTime:(NSDate *)end 
     description:(NSString *)descrition 
       URL:(NSString *)urlString 
completionHandler:(eventsOperationCompletionHandler)handler;