添加事件到日历以及提醒事项 // 版本说明 iOS研究院 305044955 /* 1.0版本示例 初始建立 将事件添加到系统日历中,并且添加到提醒事项中 / /代码示例 NSDatestartData=[NSDate dateWithTimeIntervalSinceNow:10]; NSDateendDate=[NSDate dateWithTimeIntervalSinceNow:20]; //设置事件之前多长时候开始提醒 float alarmFloat=-5; NSStringeventTitle=@"提醒事件标题"; NSStringlocationStr=@"提醒副标题"; //isReminder 是否写入提醒事项 [ZCActionOnCalendar saveEventStartDate:startData endDate:endDate alarm:alarmFloat eventTitle:eventTitle location:locationStr isReminder:YES]; //注意 在参数第十八行需要设置不同的参数,然后进行判断是事件提醒还是日历事件 //EKEntityMaskEvent提醒事项参数(该参数只能真机使用) EKEntityTypeEvent日历时间提醒参数
tangwei6423471 / zcactiononcalendar Goto Github PK
View Code? Open in Web Editor NEWThis project forked from 149393437/zcactiononcalendar
添加事件到日历以及提醒事项
License: MIT License