SceneDelegate.m 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #import "SceneDelegate.h"
  2. @interface SceneDelegate ()
  3. @end
  4. @implementation SceneDelegate
  5. - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
  6. // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
  7. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
  8. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
  9. }
  10. - (void)sceneDidDisconnect:(UIScene *)scene {
  11. // Called as the scene is being released by the system.
  12. // This occurs shortly after the scene enters the background, or when its session is discarded.
  13. // Release any resources associated with this scene that can be re-created the next time the scene connects.
  14. // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
  15. }
  16. - (void)sceneDidBecomeActive:(UIScene *)scene {
  17. // Called when the scene has moved from an inactive state to an active state.
  18. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
  19. }
  20. - (void)sceneWillResignActive:(UIScene *)scene {
  21. // Called when the scene will move from an active state to an inactive state.
  22. // This may occur due to temporary interruptions (ex. an incoming phone call).
  23. }
  24. - (void)sceneWillEnterForeground:(UIScene *)scene {
  25. // Called as the scene transitions from the background to the foreground.
  26. // Use this method to undo the changes made on entering the background.
  27. }
  28. - (void)sceneDidEnterBackground:(UIScene *)scene {
  29. // Called as the scene transitions from the foreground to the background.
  30. // Use this method to save data, release shared resources, and store enough scene-specific state information
  31. // to restore the scene back to its current state.
  32. }
  33. @end