5

I have a quick question for someone familiar with Event Kit...

I'm creating recurring reminders and I'd like an alarm to sound at each recurrence. However, the documentation suggests I can only create an alarm with an absolute date or a relative offset. Is there any way to get an alarm to fire every time the reminder reoccurs? Does it do this automatically?

Thanks!

4

1 回答 1

2

由于EKReminder是您的子类,EKCalendarItem您可以使用该addRecurrenceRule:方法添加重复规则,以便重复提醒。不幸的是,您无法创建重复警报,因为相对偏移警报基于提醒的开始日期,而不是每个重复提醒的日期。但是,您可以向对象添加多个EKAlarm',EKReminder因此如果您的事件重复离散次数,您可以为每个添加警报。如果它永远重复,你可能会不走运,因为 Apple 的文档说:

请注意,某些日历只能允许某个最大数量的警报。保存此项目后,它将截断阵列中的任何额外警报。

于 2015-05-14T20:59:36.613 回答