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: Alex Zavatone <email@hidden>
- Date: Thu, 19 Jun 2014 12:58:05 -0400
On Jun 19, 2014, at 12:13 PM, Quincey Morris wrote:
> 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
>
Thanks. That's a good one I certainly missed.
> 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™.
>
Heh, thanks. I was simply putting an NSLog in there to see if I could determine what was happening - since I couldn't find that clearly documented anywhere.
All is calm, all is well. Nothing to see here. Please move along.
Cheers,
- Alex Zavatone.
_______________________________________________
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