swift - How to set UI Local Notification for 21 days with 7 days of pause -
i need set ui local notification once day 21 days in row, after 21 days need these notifications pause 7 days , start again.
im developing swift 2.3 application woman menstrual period control , need create pill reminder has each 21 days, wait 7 days 21 days of continuous reminder (per day).
i know can schedule using interval how these "breaks" between 21 continuous reminders?
consider invalidating first reminder @ 21st day , adding second 1 different action(it should start reminder of first type).
here logic:
you start reminder repeats every day. on 21st action invalidate reminder , start new one, waits 7 days , fires. start reminder repeats every day. ...
Comments
Post a Comment