---
title: "UIApplicationStateInactive VS UIApplicationStateBackground"
author: "shake863"
date: "2013-06-06T00:26:13Z"
tags: []
categories: ["移动开发"]
slug: "uiapplicationstateinactive-vs-uiapplicationstatebackground"
draft: false
lastmod: "2013-06-06T00:26:13Z"
id: 1882981
url: "https://shake863.iteye.com/blog/1882981"
---

When the user taps on the app icon, the app briefly goes through a transitional state of**UIApplicationStateInactive** on its way to becoming **UIApplicationStateActive**. This is where the app gets itself ready to display to the user.

When the app is open, the application state is **UIApplicationStateActive**.

If the user presses the home button, and is returned to the springboard (home screen), or the application is interrupted by something, such as a phone call, the application state transitions back to**UIApplicationStateInactive**.

For the application state of your app to become **UIApplicationStateBackground**, your application would have to register for a background process. Look into how to background your location services.