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

标签 ios objective-c 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;

关于ios - 如何使用 EventKit 编辑日历中的特定事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28457209/

相关文章:

objective-c - 以编程方式解锁 MAC

ios - UIViewController didRotateFromInterfaceOrientation : not being called

iPhone:如何检测是否可以修改 EKEvent 实例?

objective-c - Apple 是否提供用于编辑/添加提醒的 UI?

ios - TableView (_ :heightForHeaderInSection:) not working

ios - OpenGL ES 2.0 iOS - 将矩形绘制到模板缓冲区中并限制仅在其中绘制

iOS 开发者计划和/或 Mac 开发者计划

ios - 更改 UINavigationController 颜色和字体

iphone - 将背景button2更改为button1 iPhone

ios - 错误 "Use of unresolved identifier ' EKEntityTypeEvent'“尝试访问日历