迴應收到的本地通知
重要資訊:此委託方法僅在前臺呼叫
迅速
func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
}
Objective-C
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
}
通常在 AppDelegate 中重寫此方法,該方法符合 UIApplicationDelegate 協議。