Daily iOS
App lifecycle and system

Leaving to the home screen

When the user goes out to the home screen (with the home button or a swipe), what happens in order in the system and in the app?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

willResignActive → the system takes the snapshot → didEnterBackground (a short grace period), then the app stops in Suspended and the system reclaims it if memory runs short. On return it's willEnterForeground → didBecomeActive.

Share a question