Wie lege ich unter iOS 10 UserNotifications ein NSCalendarUnitMinute repeatInterval fest?
n UILocalNotification verwenden wirNSCalendarUnitMinute
wie Wiederholung ..... aber ich kann in iOS 10 nicht findenUserNotification doc ... Wie kann ich @ verwendNSCalendarUnitMinute
wie Wiederholung in iOS 10UserNotification
?
hier ist der Code, der die lokale Benachrichtigung um 20:30 Uhr plant und sich alle eine Minute wiederholt.
UILocalNotification* localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = pickerDate;
localNotification.alertBody = self.textField.text;
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.repeatInterval = NSCalendarUnitMinute;
localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];