How does iphone application life cycle works in terms of development? -
here's understand in terms of high level view.
- user launches application
- load mainwindow.xib
- uiapplication initialized
- waiting events
- execute events
- exit application
my questions info.plist, main.m,*appdelegate* , viewcontroller.xib files fit in above sequence or called in terms of sequence?
have nice day!
user launches application means int main(int argc, char *argv[])
in main.m invoked.
everything else happens result of main method, particularly call uiapplicationmain.
this function instantiates application object principal class , and instantiates delegate (if any) given class , sets delegate application. sets main event loop, including application’s run loop, , begins processing events. if application’s info.plist file specifies main nib file loaded, including nsmainnibfile key , valid nib file name value, function loads nib file.
it's explained there.
Comments
Post a Comment