Google News
logo
IOS - Interview Questions
Explain the different types of iOS Application States.
The different iOS application states are :
 
Not running state : when the app has not been launched or was running but was terminated by the system.

Inactive state : when the app is running in the foreground but is currently not receiving events. An app stays in this state briefly as it transitions to a different state. The only time it stays inactive is when the user locks the screen or the system prompts the user to respond to some event such as a phone call or SMS message.

Active state : when the app is running in the foreground and is receiving events. This is the normal mode for foreground apps.

Background state : when the app is in the background and executing code. Most apps enter this state briefly on their way to being suspended. However, an app that requests extra execution time can remain in this state for some time. Also, an app being launched directly into the background enters this state instead of the inactive state.

Suspended state : A suspended app remains in memory but does not execute any code. When a low-memory condition occurs, the system may purge suspended apps without notice to make more space for the foreground app.
Advertisement