How does iOS Application life cycle works

Discussion in 'iOS Programming' started by freeme007, May 9, 2011.

  1. macrumors regular

    Sep 21, 2008

    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?
  2. macrumors 604

    Jul 29, 2003
    Silicon Valley
    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.)

Share This Page