cpprulez
cpprulez

Reputation: 896

Custom UILocalNotification repeat interval

is there a way to specify which days should an UILocalNotification fire? I want to be able to set different days, lets say: fire a local notification only on mondays, tuesdays and sundays. Is there a way to do that? Huge thanks! Update: Maybe I can set multiple local notifications for each of the days and give each of them a repeatInterval of NSWeekCaldnerUnit. Is this a correct approach?

Upvotes: 1

Views: 5800

Answers (2)

SURESH SANKE
SURESH SANKE

Reputation: 1663

Yes You can do it manually by using this method.. dateByAddingTimeInterval().Just enter some time like 24*60*60 to that method which is fired after a day.Try it with some cases you want.

Upvotes: 1

KingofBliss
KingofBliss

Reputation: 15115

You should use three different local notification then.

For a list of available repeatIntervals see here.

Upvotes: 2

Related Questions