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

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.
主站蜘蛛池模板: 民县| 龙州县| 福海县| 新闻| 临泉县| 石棉县| 报价| 平安县| 桃园市| 泊头市| 宜丰县| 美姑县| 德江县| 田东县| 美姑县| 巴东县| 清丰县| 贵港市| 紫阳县| 绥中县| 新巴尔虎左旗| 衡山县| 哈尔滨市| 通化市| 新平| 连云港市| 灌云县| 前郭尔| 北碚区| 平邑县| 怀来县| 元阳县| 临高县| 喀喇沁旗| 扎囊县| 上虞市| 南溪县| 土默特右旗| 安龙县| 武威市| 社旗县|