• 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: What state does an iOS app retain after being quit that causes it to crash on relaunch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?


  • Subject: Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?
  • From: "Glenn L. Austin" <email@hidden>
  • Date: Tue, 10 May 2011 23:44:44 -0700

On May 10, 2011, at 9:14 PM, Conrad Shultz wrote:

> Your app delegate gets various notifications/messages that it can use to
> perform appropriate actions at the various points in the life cycle, and
> it sounds like you might need to do this.  These are discussed in detail
> in the section "The Application Life Cycle" at
> http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/CoreApplication/CoreApplication.html.
>
> In particular, you may want to examine:
>
> –applicationDidEnterBackground:
> –applicationWillEnterForeground:
> –applicationWillTerminate:

And if you don't want to or can't put the handlers in the UIApplication delegate, you can just observe the UIApplication notifications themselves.

I do this a lot for stand-alone classes that need to cancel UI when the application goes into the background.


_______________________________________________

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: 
 >What state does an iOS app retain after being quit that causes it to crash on relaunch? (From: G S <email@hidden>)
 >Re: What state does an iOS app retain after being quit that causes it to crash on relaunch? (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?
  • Next by Date: Extending NSTextStorage
  • Previous by thread: Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?
  • Next by thread: Extending NSTextStorage
  • Index(es):
    • Date
    • Thread