applicationWillTerminate:
Tells the delegate when the application is about to terminate. This method is optional.
- (void)applicationWillTerminate:(UIApplication *)application
Parameters
-
application
-
The delegating application object.
Discussion
This method is the ideal place for the delegate to perform clean-up tasks, such as freeing allocated memory, invalidating timers, and storing application state.
The application posts a UIApplicationWillTerminateNotification
at the same time it calls this method.
Availability
- Available in iPhone OS 2.0 and later.
See Also
Declared In
UIApplication.h