При использовании repeatInteval уведомления продолжают толкают друг за другом независимо от того, установлен на минут/день/час и т.д.UILocalNotification repeatInterval продолжает подталкивать уведомления
Это было похоже на работу хорошо, пока я не тестировался каждые несколько секунд, в настоящее время Настройки выиграл Не возвращайся. Почему?
var dateComp:NSDateComponents = NSDateComponents()
dateComp.year = 2015;
dateComp.month = 06;
dateComp.day = 03;
dateComp.hour = 15;
dateComp.minute = 27;
dateComp.timeZone = NSTimeZone.systemTimeZone()
var calender:NSCalendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)!
var date:NSDate = calender.dateFromComponents(dateComp)!
var notification:UILocalNotification = UILocalNotification()
notification.category = "Daily"
notification.alertBody = "OK"
notification.fireDate = date
notification.repeatInterval = NSCalendarUnit.CalendarUnitDay
notification.soundName = UILocalNotificationDefaultSoundName
UIApplication.sharedApplication().scheduleLocalNotification(notification)
dateComp.year = 201; ??? – Andrea
Ошибка Typo, изменил его обратно (и установил его на 2020), но не повезло. – JUSDEV