Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试了Re.minder 应用程序,发现它可以以自定义间隔重复提醒(例如每 3 分钟、每 2 小时、每 4 天……)。
我怎样才能做到这一点?
感谢您试用我们的应用程序!事实证明,我们实际上并没有使用 UILocalNotification repeatInterval 来完成它。鉴于它的局限性(只有一个 NSCalendarUnit),我们实际上编写了自己的调度程序。这有它自己的限制,主要是每个应用程序的 64 个本地通知队列限制。我们基本上安排和建立自己的队列,然后从中填充本地通知。每当用户启动或更改应用程序时,我们都会重新安排时间。
希望有帮助!