This delegete will be called when your application is going to terminate.
- (void)applicationWillTerminate:(UIApplication *)app
{
}
If you are using iOS 4 or greater and with multi-tasking support, applicationWillTerminate
will not be called.
For receiving the terminate event you need to add UIApplicationExitsOnSuspend
key on your info.plist
Check this article for a good understanding about application events.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…