Ios 重复本地通知

Ios repeating local notifications

这是我的问题:

  1. 在一周中的每个特定日期的两个日期之间安排本地通知。示例:3月1日至3月20日之间的每个星期日

  2. 我要设置的本地通知超过 64 个,这是限制。

    对于第一个问题,我知道有 repeatIntervals,我可以将其设置为每周日触发通知,但我如何将它们设置在两个日期之间?是需要自己手动计算,找出3月1号到20号之间的所有星期天然后设置还是有更好的?

使用NSCalendar to get the specific dates, put in an array, and pass to the scheduleLocalNotification.

In this topic 你可以得到一个如何做的示例代码。