As for the UILocalNotification
NSCalendarUnitWeekOfYear
should be used as a unit for repeatInterval
.
When I set repeatInterval = NSCalendarUnitWeekOfMonth
for the notification scheduled 10 seconds from now, the notification doesn't fire, and the description of the instance of UILocalNotification
prints .. next fire date = (null) ...
If I use NSCalendarUnitWeekOfYear
then notification appears and I see correct next fire date from code in the notification's description.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…