State | Description |
Not running | The app has not been launched or was running but was terminated by the system. |
Inactive | The app is running in the foreground but is currently not receiving events. (It may be executing other code though.) An app usually stays in this state only 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 this state briefly on their way to being suspended. However, an app that requests extra execution time may remain in this state for a period of time. In addition, an app being launched directly into the background enters this state instead of the inactive state. For information about how to execute code while in the background, see Background Execution. |
Suspended |
The app is in the background but is not executing code. The system moves apps to this state automatically and does not notify them before doing so. While suspended, an 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. |
相关文章
- 08-26iOS进阶_Socket(Socket简介&代码演练)
- 08-26iOS高级进阶系列之-项目开发基础(下)Mach-O与链接器,Symbol!
- 08-26iOS进阶_KVC(&KVC赋值取值过程分析&KVC自定义&异常处理)
- 08-26iOS 生命周期
- 08-26iOS逆向一个APP指令集
- 08-26iOS面试高薪,进阶 你会这些呢嘛?(持续更新中)
- 08-26iOS11 AppStore推广支付(Promoting In-App Purchases)
- 08-26iOS开发-Swift进阶之Optional & Equatable+Comparable协议!
- 08-26logic iOS中高级特训营V10-课程3 Swift 底层进阶 学习计划 逻辑教育 最后附上下载链接
- 08-26iOS进阶笔记(三) Objc关键字