I am having an app in which I have to schedule Local Notifications. Consider a user enters the time 7 AM, then the Notification has to be fired on 7 AM every day (or, ever 2 days, or every 3 days) based on the settings he set. This Notification has to be fired on regular basis until the user turns of the Notification.
My doubt is how to schedule the Notification to fire on every 2 days or every 3 days or every 2 weeks like that? Sorry if this is a very basic question. I am new to Local Notifications.
What you need you need to make a date list from a start date to end date then need to enter a gap in days for alarms and according to that gap you need to set alarms.
date with time is required for alarms.
see this function this return an array of dates with gap in days
what you need to pass a start date and end date in string and the days gap for alarm and this function returns you a array of dates in strings.Now you need to use these date and append your time then make date object by
NSDateFormatterthen set it forfireDateof local notification.see this link for more info