The core methods you use to respond to life-cycle events occurring within a scene.
- iOS 13.0+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
UIScene object to manage life-cycle events in one instance of your app's user interface. This interface defines methods for responding to state transitions that affect the scene, including when the scene enters the foreground and becomes active, and when it enters the background. Use your delegate to provide appropriate behavior when these transitions occur. For example, finish critical tasks and quiet your app when it enters the background.
Do not create
UIScene objects directly. Instead, specify the name of your custom delegate class as part of the configuration data for your scenes. You can specify this information in your app's
Info file, or in the
UIScene object you return from your app delegate's
application(_: method. For more information about how to configure scenes, see XREF.