Is there any reason that my app would get reset entirely by the iPhone?
I have a timer app that has timers with notifications for each timer. Occasionally, (it may be related to charging the phone) the app gets reset entirely, all timers stopped and reset as if the app had never been run before.
Is there a time when apps get a call to nil-out? Should I be storing the timer start times and a BOOL saying a timer is running in NSUserDefaults (or similar)?
Thanks in advance,
Michael.
Applications can be killed at any time both by the OS and the user, thus leaving us developers in a constant state of worry about hard data like yours. If you must, save it to an NSUserDefault for the next launch of your app.