My application creates some temporary files that I need during its whole lifecycle. I need to dispose of those files eventually, so they don’t take up space on the device. I figured I could delete them when the application quits, but since the multitasking has been introduced the lifecycle is not as simple as it used to be. My main question is: When my application moves into background and gets killed later, does it receive applicationWillTerminate:
? Or is it just wiped from the memory?
I can’t do the cleanup when the application moves into background, since it could be backgrounded in the middle of an operation and would need the temporary files once it gets back on foreground. I think I could clean the files upon startup, but I am interested in the applicationWillTerminate:
behaviour anyway.