有人可以告诉我如何为iOS日历活动制作重复(每周,每日,每月)活动。我目前的实现是这样的:
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = [cellValue objectForKey:@"ZEVENTNAME"];
event.notes = [cellValue objectForKey:@"ZEVENTDESCRIPTION"];
event.location = [cellValue objectForKey:@"ZLOCAITONname"];
NSString * dateStart =[cellValue objectForKey:@"ZEVENTSTARTDATE"];
NSString * dateEnd =[cellValue objectForKey:@"ZEVENTENDDATE"];
NSDateFormatter *_formatter=[[NSDateFormatter alloc]init];
[_formatter setDateFormat:@"yyyyMMdd"];
NSDate *sDate = [_formatter dateFromString:dateStart];
NSDate *eDate = [_formatter dateFromString:dateEnd];
[_formatter setDateFormat:@"MM/dd/yyyy"];
event.startDate = sDate;
event.endDate = eDate;
event.calendar = [eventStore defaultCalendarForNewEvents];
NSError *error;
[eventStore saveEvent:event span:EKSpanThisEvent error:&error];
我已经通过苹果公司的开发人员帮助,但无法实现如何实施。
由于