I just got the iPhone SDK 4 and I'm trying to leave off developing an app I was working on before. So I implemented both
-(void)applicationDidEnterBackground:(UIApplication *)application
and - (void)applicationWillTerminate:(UIApplication *)application
When I click the home button in the simulator 4.0, it seems to work okay. The app calls -(void)applicationDidEnterBackground:(UIApplication *)application
and enters the background state..
However, I then double click the home button to expose the app running in the background, and hold it down to show the minus sign in or to exit. When I click the minus sign, the debugger says
Program received signal: "SIGKILL"
in addition, - (void)applicationWillTerminate:(UIApplication *)application
is never called. Am I missing something I need to do for this to work on OS4? Or at least can somebody point me to a way to debug SIGKILL. Thanks.