I am using the following code to call some save methods when my app is either closed or the iphone goes to sleep. I'm just checking they are both OK and correct to use this way?
- (void)applicationWillResignActive:(UIApplication *)application {
[self saveState];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[self saveState];
}
The saveState function simply sets a few NSuserdefaults...
Thanks for any info!