12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import UIKit
- class SceneDelegate: UIResponder, UIWindowSceneDelegate {
- var window: UIWindow?
- func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
-
-
-
- guard let _ = (scene as? UIWindowScene) else { return }
- }
- func sceneDidDisconnect(_ scene: UIScene) {
-
-
-
-
- }
- func sceneDidBecomeActive(_ scene: UIScene) {
-
-
- }
- func sceneWillResignActive(_ scene: UIScene) {
-
-
- }
- func sceneWillEnterForeground(_ scene: UIScene) {
-
-
- }
- func sceneDidEnterBackground(_ scene: UIScene) {
-
-
-
-
- (UIApplication.shared.delegate as? AppDelegate)?.saveContext()
- }
- }
|