PDA

View Full Version : How does iOS Application life cycle works




freeme007
May 9, 2011, 10:16 AM
Hi

I read couple articles about how ioS application life cycle works including the one on Apple's developer site and I'm still confused a bit. So, if anyone know clearly, please help me out. Here's what I know so far:

When the App starts, it looks into the application's information property list and loads the main.m file. Within the main.m file, it creates the UIApplication object and UIApplication delegates. Now what?



firewood
May 9, 2011, 12:51 PM
For a view-based app, the application delegate appears to load a main window xib (as named in the app's plist, depending on iphone/ipad paradigm) and instantiate the top view and top view controller objects listed in the window xib. Those objects might then call their init methods, as well as include delegates to handle the first events trickling down from the main window (user touches, etc.)