Re: What state does an iOS app retain after being quit that causes it to crash on relaunch?
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