开发者

Custom repeat interval for UILocalNotification

I tried the Re.minder app and noticed that it can repeat reminders with custom intervals (such as every 3 min开发者_Go百科utes, every 2 hours, every 4 days,...).

How can I do that?


Thanks for trying our app! It turns out, we're not actually using UILocalNotification repeatInterval to accomplish that. Given it's limitations (only one NSCalendarUnit), we actually wrote our own scheduler. This has it's own limitations, mainly the 64 local notification queue limit per app. We essentially schedule and build our own queue, then fill the local notifications from that. Any time the user launches or makes a change in the app we reschedule.

Hope that helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜