ios iPhone 应用程序的生命周期是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6519847/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the Life Cycle of an iPhone application?
提问by Santusura8
Can anyone explain what is the life cycle process of iPhone? i.e from the start to end of the application life cycle.
谁能解释一下iPhone的生命周期过程是什么?即从应用程序生命周期的开始到结束。
回答by AliSoftware
See also This post on Cocoaneticsthat present a very useful flowchart explaining the different calls to the AppDelegate methods during the app life cycle:
另请参阅Cocoanetics上的这篇文章,它提供了一个非常有用的流程图,解释了在应用程序生命周期中对 AppDelegate 方法的不同调用:
回答by swiftBoy
here is diagram image for understand Life Cycle (iPhone / Android)
这是用于了解生命周期的图表图像(iPhone / Android)
Edit:Here is the more detailed information from Apple Docs.
编辑:这是来自Apple Docs的更详细信息。
Part 1:
第1部分:
Part 2:
第2部分:
Also this one is for View Controller Life Cycle methods
这也是视图控制器生命周期方法
回答by Haider
There's another simpler one in ios developer's cookbook
在 ios 开发人员的食谱中还有一个更简单的
回答by andyqee
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
如果你想要更详细的东西,你可以阅读苹果提供的官方文档
它已经更新到iOS6.0
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ViewLoadingandUnloading/ViewLoadingandUnloading.html