官术网_书友最值得收藏!

Understanding application states

When getting ready to assess iOS apps, it is important to understand application states. There are various app states in iOS. Apple allows only one state at a time. These states changes according to user or system actions.

For example, suppose you press the Home key and a text message (SMS) comes in, the currently running app changes its state to the background.

The following are the different states in iOS:

  • Not running: The app will be in this state before it is started and after it is terminated or aborted.
  • Inactive: An app in the inactive state is still running in the foreground but will not receive any events or alerts. For example, if you are browsing a website in Safari and receive an SMS and switch over to the SMS app, Safari is in the inactive state until it is reopened.
  • Active: When an app icon is clicked, it goes into the active state and will run in the foreground and actively receive events.
  • Background: In this state, apps run in the background. This means that apps will execute code without user interaction. For example, your Facebook app provides notification alerts as soon as you connect to the Internet without even opening the app through a mechanism called background execution.
  • Suspended: Apps that have not been used for a long time and are not performing any tasks will enter the suspended state but still be available in memory.
主站蜘蛛池模板: 祁阳县| 塔城市| 嘉黎县| 韶关市| 甘孜县| 桃源县| 郸城县| 颍上县| 英超| 白朗县| 平武县| 焦作市| 南皮县| 南开区| 海门市| 外汇| 保德县| 秦安县| 南陵县| 石嘴山市| 盐城市| 长岭县| 茶陵县| 抚宁县| 滨海县| 霍林郭勒市| 南涧| 克山县| 英山县| 敦化市| 尤溪县| 扶余县| 东港市| 黄石市| 万年县| 颍上县| 元江| 乐至县| 岳阳县| 江都市| 沁源县|