Ios App Delegate Lifecycle Methods

When your app s state changes uikit notifies you by calling a method of the appropriate delegate object in ios 13 and later use uiscenedelegate objects to respond to lifecycle events in a scene based app.
Ios app delegate lifecycle methods. If you enable scene support in your app ios always uses your scene delegates in ios 13 and later. If your app supports scenes uikit delivers separate life cycle events for each. In this post we will understand application life cycle in ios and i ll explain the same in depth.
In ios 12 and earlier use the uiapplicationdelegate object to respond to lifecycle events. In ios 12 and earlier use the uiapplication delegate object to respond to life cycle events. For information on what to do when your app enters the foreground see preparing your ui to run in the foreground.
In ios 12 and earlier you use your app delegate to manage major life cycle events in your app. Specifically you use methods of the app delegate to update the state of your app when it enters the foreground or moves to the background. This change is to support multiple windows in ios 13.
Ios 13 has a new way of sending app lifecycle events instead of coming through the uiapplicationdelegate they come through the uiwindowscenedelegate which is a uiscenedelegate sub protocol. Ios app lifecycle by aditya malviya on 14 oct 2018 3. Respond to scene based life cycle events.
Uiscenedelegate has the important delegate methods. In ios 12 and earlier the system uses your app delegate.