As asked
Can you walk me through the five UIApplicationDelegate lifecycle states in iOS, what triggers each transition, and where you'd place expensive setup or teardown work in a typical production app?
Sample answer outline
A strong answer names Not Running, Inactive, Active, Background, and Suspended, explains the delegate callbacks (willFinishLaunching, didBecomeActive, willResignActive, didEnterBackground, willTerminate), and notes that background time is limited. Candidate should mention moving heavy init out of didFinishLaunching to avoid slow launch, and doing state-save in didEnterBackground before the 5-second window closes.
Expect these follow-ups
- How does SceneDelegate change this picture on iOS 13 and later?
- What happens if your app is suspended and a push arrives while the device has Low Power Mode on?