Prior to iOS 8, scheduling weekly recurring notifications was simple, we just set NSWeekCalendarUnit to notification.repeatInterval . Now with iOS 8, almost all NSCalendarUnit values NSCalendarUnit deprecated and replaced, basically, so Apple can rename them from NSDayCalendarUnit to NSCalendarUnitDay to ensure consistency. However, they changed NSWeekCalendarUnit to NSCalendarUnitWeekOfMonth and NSCalendarUnitWeekOfYear without a clear explanation of the differences, and the UILocalNotification documentation still speaks of outdated values.
I want UILocalNotification to be repeated every 7 days . I assumed that the NSCalendarUnitWeekOfMonth value was correct, but when I use it, I do not get a repetition. Testing takes a lot of time because each test takes a week!
Does anyone know which of the calendar units of the new week should be used for weekly re-local notification, or if outdated values ββcontinue to be used despite warnings?
source share