The fact that your app icon is shown in the "multitask tab" does not mean that your app is still there.
The "multitask tab" simply shows a list of all the apps that you have run.
A simple way to assess if an app is launched anew when you touch it, is by doing the following steps:
launch your app;
close it by pressing the home button;
relaunch the app and inspect the image that it shows on startup. If this image is your "Default.png" image, then the app was launched anew. If you find your app in the state you left it, then the app was simply made active again (i.e., it was in the background).
A more advanced way to see what happens when you launch your app is put an NSLog
trace in your app delegate methods:
- (void)applicationDidEnterBackground:(UIApplication *)application {
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
}
If you will see the traces printed out, then it means that the app was not quit on suspend.
Conversely, you could put a trace in:
- (void)applicationWillTerminate:(UIApplication *)application {
}
if it is called when you press the home button, then the app does not enter the background state, rather it quits.