Friday, June 1, 2012

iOS: Quitting the App

Now with multi-tasking, apps go into suspend mode when user presses the "Home" button. Apparently, Apple does not allow "exit(0)" to be used (some say it's OK to call it when the app enters background).

So either:
  1. The app never quits by itself
  2. Or configure it such that it never suspends (info.plist "Application does not run in background" ==> TRUE)
  3. Call "exit(0)" when app in background i.e. "applicationDidEnterBackground" callback
References

No comments:

Post a Comment