• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS app restarting from screen one. Why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >iOS app restarting from screen one. Why? (From: Alex Zavatone <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Jens Alfke <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Alex Zavatone <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Jonathan Hull <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Alex Kac <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Alex Zavatone <email@hidden>)
 >Re: iOS app restarting from screen one. Why? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: iOS app restarting from screen one. Why?
  • Next by Date: Re: Any examples of -[NSScrollView addFloatingSubview:]? SOLVED
  • Previous by thread: Re: iOS app restarting from screen one. Why?
  • Next by thread: RE: iOS app restarting from screen one. Why?
  • Index(es):
    • Date
    • Thread