Re: iOS app restarting from screen one. Why?
Re: iOS app restarting from screen one. Why?
- Subject: Re: iOS app restarting from screen one. Why?
- From: Quincey Morris <email@hidden>
- Date: Thu, 19 Jun 2014 09:13:34 -0700
On Jun 19, 2014, at 08:24 , Alex Zavatone <email@hidden> wrote:
> There is no message thrown in the console and the applicationWillTerminate: method isn't called at all.
Generally, since iOS 4, applicationWillTerminate: is never invoked. You get applicationDidEnterBackground, and that’s where you’re supposed to save your state. (The exception is when you’re doing background processing.)
This is clearly documented here:
https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
and a couple of people already mentioned it in this thread. If you’re still using applicationWillTerminate: in your app, you’re Doing It Wrong™.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden