DH
Но Computer Vision проекта это было критично.
Size: a a a
DH
DH
AK
M
КТ
АЛ
АЛ
DH
КТ
АЛ
M
КТ
АЛ
АЛ
func scheduleLocal() {
let dateComponents = DateComponents(year: 2019, month: 1, day: 17, hour: 10, minute: 20)
let yourFireDate = Calendar.current.date(from: dateComponents)
let notification = UILocalNotification()
notification.fireDate = yourFireDate
notification.alertBody = "Hey you! Yeah you! Swipe to unlock!"
notification.alertAction = "be awesome!"
notification.soundName = UILocalNotificationDefaultSoundName
notification.userInfo = ["CustomField1": "w00t"]
UIApplication.shared.scheduleLocalNotification(notification)
}
КТ
АЛ
NotificationCenter.default.addObserver(self, selector:#selector(self.calendarDayDidChange(_:)), name:NSNotification.Name.NSCalendarDayChanged, object:nil)
@objc private func calendarDayDidChange(_ notification : NSNotification) {
doSomethingWhenDayHasChanged()
}
VI
АЛ