是否可以使用重复模式YES为日历触发器提供日期 . 即通知应从指定日期到每天(每隔一天)开火 . 对于Eg . 我希望每天早上8点到30天通知,但它应该在2天到30天之后开火,但不是从今天开始 .

NSDateComponents *components = [calendar components:NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitTimeZone
                                           fromDate:fireDate];
UNMutableNotificationContent *objNotificationContent = [[UNMutableNotificationContent alloc] init];
objNotificationContent.title = @"Sample";
UNCalendarNotificationTrigger *trigger = [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:components repeats:YES];

fireDate 是未来的日期,但是使用带有小时和分钟的dateComponents从今天开始 .