0
如何在Swift中显示(不只是点击)本地通知时分配操作或执行代码?目前我创建这样如何在Swift中显示本地通知时分配操作
var localNotification:UILocalNotification = UILocalNotification()
localNotification.alertAction = "Golie Report"
localNotification.alertBody = "Did you do what you could to meet your goal today?"
localNotification.fireDate = notifyTime
localNotification.category = "INVITE_CATEGORY";
localNotification.repeatInterval = NSCalendarUnit.CalendarUnitDay
的通知,并在AppDelegate.swift