Reputation: 11702
I want to set notification to repeat every week. How to do that, I don't see NSCalendarUnit.Week
, only see NSCalendarUnit.Day
, and I can't set NSCalendarUnit.Day * 7
. So, how to do this? Does notification.repeatInterval = NSCalendarUnit.WeekOfMonth
work?
notification.repeatInterval = NSCalendarUnit.
Upvotes: 2
Views: 96
Reputation: 19834
How about WeekOfMonth
or WeekOfYear
? They have two different implementations so be sure to read the documentation around both. Or look at this post.
Upvotes: 2