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;
如果您想要改进些什么,请创建一个友好且建设性的问题,得到您的反馈将会很棒。祝您有美好的一天。