我正在处理本地通知,但我遇到的问题是当应用程序终止时没有调用didReceiveResponse方法,所以当我点击通知操作时它只是启动应用程序而没有做任何其他事情。但是,当该应用程序仅在后台运行时,一切正常。我的代码有什么问题吗?//MyClassNameViewController.swiftoverridefuncviewDidLoad(){super.viewDidLoad()UNUserNotificationCenter.current().delegate=self}functriggerAlarm1(){//Createaninstanceofnotificationce