In my iphone app, I want to provide some type of end-of-end handler which will do the last thing (delete some sensitive data) )) Before the application ends.
I want to handle a lot of situations ending as possible: 1) the user terminates the AP 2) the device ends with the battery. 3) The system terminates the app due to some reason (i.e., out of memory or app freeze) 4) Application crash (EXC_BAD_ACCESS or SIGSEGV)
What is an extraordinary situation?
What is the best way to get it (for example, the application called in position 2 is required)?
Is it possible to clean in the signal handler (iPhone security framework calls)?
is related to
This will help you from time to time 4).
You know when your app is going to end from your app representative and you can listen for a notice to see fcations for battery changes.
Comments
Post a Comment