[英]How to edit specific event in calendar using EventKit?
I want to programmatically edit a specific stored event in calendar. 我想以编程方式编辑日历中的特定存储事件。 I think it can be done by event identifier, but I don't know a proper way to do that.
我认为它可以通过事件标识符完成,但我不知道这样做的正确方法。
Check this library JSCalendarManager it will help you a lot and have all methods ready and abstracted for your convenience. 检查这个库JSCalendarManager它会帮助你很多,并为方便起见准备和抽象所有方法。
To update an event use the following method 要更新事件,请使用以下方法
/*!
@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;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.