The UI for the app is already done. All I need is an algorithm or method to schedule UILocalNotifications.
This app allows the user to set a recurring reminder on the nth day of the month. For example, the 2nd Monday of every month. But it allows multiple reminders. So I could set the following reminders:
2nd Wednesday, 2nd Thursday, 4th Wednesday, 4th Thursday
The iOS local notification scheduling system has some limitations:
1. You can only schedule up to 64 notifications maximum. That means if the user sets 4 reminders that recur every month, the app will only work for a little over a year. If they set 6 reminders every month, it will work less than a year.
2. When you use NSCalendarUnitOrdinal for the recurring frequency, there are situations where it breaks. For example, if I set a 5th Sunday of every month reminder, and there is NO 5th Sunday in June, it will fire on the 1st Sunday in July, which is bad. I don't want that. If there is no nth day in a month, the app...