Can anyone explain what is the life cycle process of iPhone? i.e from the start to end of the application life cycle.
-
I had found an article which has gud explanation abt the app life cycle, please refer to the below doc. I hope it will be helpful others. codeproject.com/KB/iPhone/ApplicationLifeCycle.aspx– Santusura8Jun 29, 2011 at 11:48
-
codeproject.com/Articles/121681/…– AnandJul 9, 2012 at 13:50
4 Answers
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:
-
-
@KronoS - Yes, the only time this changed significantly was the introduction of multitasking in iOS 4.0. It's still viable as of iOS 5.0 (and should continue to be so for iOS 6.0).– Brad Larson ♦Jul 9, 2012 at 14:47
-
1Apple/iOS does not send the
applicationWillTerminate
message. About all you will get is aSIGTRM
when the operating system wants you out of memory. The docs have been broken for years.– jwwOct 10, 2013 at 15:17 -
iOS does send the
applicationWillTerminale
message, but only in the cases explained in the diagram, namely if you were compiling with SDK<4 (which can't be the case nowadays) or if you setUIApplicationExitsOnSuspend
toYES
in your app'sInfo.plist
. So the diagram is still right ;) Oct 10, 2013 at 21:01
here is diagram image for understand Life Cycle (iPhone / Android)
Edit: Here is the more detailed information from Apple Docs.
Part 1:
Part 2:
Also this one is for View Controller Life Cycle methods
-
-
@Keale please check this official page have all the information with diagrams.– swiftBoyNov 14, 2013 at 8:32
-
The Apple reference links are broken. Here are updated ones: The App Life Cycle and The Launch Cycle– RMPOct 12, 2017 at 15:50
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
-
The App Life Cycle Updated with iOS 9 : developer.apple.com/library/ios/documentation/iPhone/Conceptual/… Oct 10, 2015 at 7:45