I am trying to simulate the stock alarm app usage with the UserNotifications
API but I am having hard time doing it.
For a single specific weekday (monday in this case) its all good.
NSDateComponents *components = [NSDateComponents new];
components.hour = 13;
components.minute = 0;
components.second = 0;
components.weekday = 2;
According to Apple: "The weekday units are the numbers 1 through N (where for the Gregorian calendar N=7 and 1 is Sunday)."
But if I want both monday and tuesday (should be 1 + 2?, which points to wednesday) I can't get it working.
This walkthrough also have detailed information. "To create a trigger that repeats at a certain interval use the correct set of date components. For example, to have the notification repeat daily at the same time we need just the hour, minutes and seconds:"