Five states of iOS should be shipped programs

Source: Internet
Author: User

Five states of iOS should be shipped programs are converted from Apple's official documents

5 Status:

Not running

The app has not been launched or is running but is terminated by the system.

Inactive

The app is running in the foreground it's currently not receiving events. (It May is executing other code though.) An app usually stays in this state is briefly as it transitions to a different state.

Active

The app is running in the foreground and is receiving events. This is the normal mode for foreground apps.

Background

The app is in the background and executing code. Most apps enter the briefly on their-being suspended. However, an app, the requests extra execution time may remain in this state for a period of time. In addition, an app being launched directly to the background enters this state instead of the inactive state. For information the what to execute code while in the background, see "background execution and multitasking."

Suspended

The app is in the background, but isn't executing code. The system moves apps to this state automatically and does not notify them before doing so. While suspended, a app remains in memory but does not execute any code.

When a low-memory condition occurs, the system could purge suspended apps without notice to make more space for the Foregrou nd app.

5 transition diagram of the state:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.