Application States and Transitions

In Homepwner, the items are archived when the application enters the background state. It is useful to understand the states an application can be in, what causes applications to transition between states, and how your code can be notified of these transitions. This information is summarized in Figure 15.7.

Figure 15.7  States of a typical application

States of a typical application

When an application is not running, it is in the not running state and it does not execute any code or have any memory reserved in RAM.

After the user launches an application, it enters the active state. When in the active state, an application’s ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.