我遵循了许多教程并查看了文档,并认为我有正确的代码,但它仍然不想再次出现。任何想法将不胜感激。我的代码如下。谢谢。
EKRecurrenceEnd *endRecurrence = [EKRecurrenceEnd recurrenceEndWithOccurrenceCount:14];
EKRecurrenceRule *rule = [[EKRecurrenceRule alloc] initRecurrenceWithFrequency:EKRecurrenceFrequencyWeekly interval:1 end:endRecurrence];
NSMutableArray *rules = [[NSMutableArray alloc] init];
[rules arrayByAddingObject:rule];
event.recurrenceRules = rules;