HYPEventManager 是添加、更新和删除 iOS 计划事件的最简单方式。
- (void)createEventWithTitle:(NSString *)title
startDate:(NSDate *)startDate
duration:(NSInteger)duration
completion:(void (^)(NSString *eventIdentifier, NSError *error))completion;
- (void)updateEvent:(NSString *)eventIdentifier
withTitle:(NSString *)title
startDate:(NSDate *)startDate
endDate:(NSDate *)endDate
completion:(void (^)(NSString *eventIdentifier, NSError *error))completion;
- (void)deleteEventWithIdentifier:(NSString *)identifier
completion:(void (^)(NSError *error))completion;
- (void)isEventInCalendar:(NSString *)eventIdentifier
completion:(void (^)(BOOL found))completion;
HYPEventManager 在 MIT 许可下完全开源。有关详细信息,请参阅 LICENSE
如果您想改进某些内容,请创建一个友好且建设性的问题,您的反馈会对我们很有帮助。祝您拥有美好的一天。