objective c - When do iOS apps reach the end of main()? -


i new objective-c . know objective-c programs start main method . should end after time, ios applications keep on running when reach end of method. can please explain?

that because run loop created when line run:

    int retval = uiapplicationmain(argc, argv, nil, nil); 

the run loop processes incoming events (button presses, mouse movements, timers, network activity, etc. loop never terminates. way app terminated either os or exit() function terminates app wherever called. should never call exit() function in ios os should handle app termination in background.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -