回应收到的本地通知

重要信息:此委托方法仅在前台调用

迅速

func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
    
}

Objective-C

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
    
}

通常在 AppDelegate 中重写此方法,该方法符合 UIApplicationDelegate 协议。