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