• Stars
    star
    196
  • Rank 198,553 (Top 4 %)
  • Language
    Objective-C
  • Created over 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

调用手机日历的功能,提醒事件的创立,修改,删除,查询日历上的提醒事件

YBCalendar

调用手机日历的功能,提醒事件的创立,修改,删除,查询日历上的提醒事件

主要是对调用日历功能的封装

  • (instancetype)sharedEventCalendar;

/**

  • 将App事件添加到系统日历提醒事项,实现闹铃提醒的功能
  • @param title 事件标题
  • @param location 事件位置
  • @param startDate 开始时间
  • @param endDate 结束时间
  • @param allDay 是否全天
  • @param alarmArray 闹钟集合
  • @param completion 回调方法 */
  • (void)createEventCalendarTitle:(NSString *)title location:(NSString *)location startDate:(NSDate *)startDate endDate:(NSDate *)endDate allDay:(BOOL)allDay alarmArray:(NSArray *)alarmArray completion:(completion)completion;

// 检测日历功能是否可以使用

  • (BOOL)checkCalendarCanUsed;

// 添加

  • (void)addEventCalendarTitle:(NSString *)title location:(NSString *)location startDate:(NSDate *)startDate endDate:(NSDate *)endDate allDay:(BOOL)allDay alarmArray:(NSArray *)alarmArray completion:(completion)completion;

// 修改

  • (void)modifyCalendarWithTitle:(NSString *)modifytitle forTheCalendarWithStartdate:(NSDate *)startDate;