什么是 iPhone 应用程序的生命周期?

有人能解释一下 iPhone 的生命周期过程吗?即从应用程序生命周期的开始到结束。

82324 次浏览

See also This post on Cocoanetics that present a very useful flowchart explaining the different calls to the AppDelegate methods during the app life cycle:

UIApplication Delegate messaging flowchart

If you want to something more detail ,you can read the official document delivered by apple
It has been updated with iOS6.0
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ViewLoadingandUnloading/ViewLoadingandUnloading.html

There's another simpler one in ios developer's cookbook

enter image description here

here is diagram image for understand Life Cycle (iPhone / Android)

enter image description here


Edit: Here is the more detailed information from Apple Docs.

Part 1:

enter image description here

Part 2:

enter image description here

Reference

Also this one is for View Controller Life Cycle methods

enter image description here