0

I am scheduling UILocalNotifications in my project. At present I am scheduling the notification for the daily basis. Now the client has asked to do particular scenarios like scheduling for every second week. Is there a way to do this? Please can any one suggest a solution.

Thanks In Advance

Prakash Murthy
  • 12,923
  • 3
  • 46
  • 74
Nassif
  • 1,113
  • 2
  • 14
  • 34

2 Answers2

1

The answer provided here can be adjusted to suit your needs.

Changing localNotification.repeatInterval = NSDayCalendarUnit; to localNotification.repeatInterval = NSWeekCalendarUnit; (after extracting it out using NSDateComponents) will be a start.

Community
  • 1
  • 1
rossbeale
  • 136
  • 2
0

Use Ekeventkit store to show alert on particular dates/days etc.

You should go through Apple documentation

Shashank Kulshrestha
  • 1,556
  • 17
  • 31