0

My iOS app simply shuts down when I open notification center while the app is visible and in focus. Same thing happens if I double click the home button to show the recently used apps list.

This would seem to be an application lifecycle issue, but no errors are reported in Xcode.

How should I go about debugging this problem?

ntaj
  • 311
  • 2
  • 21
  • What do you mean by shuts down? The application does move to an inactive state when the user opens notification center or double taps the home screen, that is normal behavior. – Kris Gellci Oct 15 '14 at 21:23
  • 2
    Can you post the contents of your `- (void)applicationWillResignActive:(UIApplication *)application` – navkast Oct 15 '14 at 21:24
  • 1
    Is this a new project or are you working with a really old one (created before iOS4)? Could happen with an ancient tutorial project, legacy app sort of thing. – Brian Nickel Oct 15 '14 at 21:34
  • It's a really old project that is being updated (painfully). The `applicationWillResignActive:` function had an `exit(0)` call, causing the app to close. Issue is resolved. Thanks. – ntaj Oct 15 '14 at 21:39

0 Answers0