说今天是星期一,也是下午1点。我想从今天下午2点开始,从我的iOS应用程序安排每周本地通知。我这样做:
NSDateComponents *components = [[[NSDateComponents alloc]init]autorelease];
components.weekday = 2;
components.hour = 14;
components.minute = 0;
UNCalendarNotificationTrigger *trigger = [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:components repeats:YES];
//then make a UNMutableNotificationContent and UNNotificationRequest and schedule it
但如果我想在星期一下午2点开始下一次,我该如何跳过第一次?
要以另一种方式提问,如何在某个任意时间开始重复UNCalendarNotificationTrigger
,而不是第一次出现重复间隔?