Twitter khuong291
Twitter khuong291

Reputation: 11702

Set notification called everyweek

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

Answers (1)

SushiGrass Jacob
SushiGrass Jacob

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

Related Questions