Apple Developer Documentation

앱이 Foreground or Background에 있을 때 시스템 알림에 응답하고 기타 중요한 시스템 관련 이벤트 처리를 함

Overview

NOTE

iOS 13이상부터 Scene support를 활성화하면 항상 scene delegates를 사용해야 함

iOS 12이하는 app delegate를 사용함

Respond to Scene-Based Life-Cycle Events

IMPORTANT

Scene Support는 선택 기능임.

기본 Support를 활성화하려면 앱이 지원하는 Scene 지정에 설명된 대로 앱 파일 Info.plist에 UIApplicationSceneManifest Key를 추가해야함

The following figure shows the state transitions for scenes. When the user or system requests a new scene for your app, UIKit creates it and puts it in the unattached state.

User-requested scenes move quickly to the foreground, where they appear onscreen.

A system-requested scene typically moves to the background so that it can process an event.

For example, the system might launch the scene in the background to process a location event. When the user dismisses your app's UI, UIKit moves the associated scene to the background state and eventually to the suspended state. UIKit can disconnect a background or suspended scene at any time to reclaim its resources, returning that scene to the unattached state.