Describe the iOS app lifecycle and SceneDelegate methods
WHAT IT TESTS: knowledge of app and scene states. OUTLINE: not running, inactive, active, background, suspended; SceneDelegate handles sceneDidBecomeActive, sceneWillResignActive, sceneDidEnterBackground, sceneWillEnterForeground.
WHAT IT TESTS: whether you understand the lifecycle states and the scene-based callbacks that replaced AppDelegate-centric handling in iOS 13. ANSWER OUTLINE: the states are not running, inactive, active, background, and suspended; UISceneDelegate methods include scene(_:willConnectTo:options:) for setup, sceneDidBecomeActive and sceneWillResignActive around foreground activity, and sceneDidEnterBackground and sceneWillEnterForeground for background transitions.
Read the original → interview
- #ios
- #lifecycle
- #scenedelegate
- #uikit
- #app-states
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.