我正在使用 iOS 13 及其新版本UISceneDelegate
,我想在应用程序被杀死时执行一个函数。
我曾经使用applicationWillTerminate
from 的函数,UIApplicationDelegate
但在UISceneDelegate
.
那么使用它的最佳方法是什么UISceneDelegate
?
我正在使用 iOS 13 及其新版本UISceneDelegate
,我想在应用程序被杀死时执行一个函数。
我曾经使用applicationWillTerminate
from 的函数,UIApplicationDelegate
但在UISceneDelegate
.
那么使用它的最佳方法是什么UISceneDelegate
?