I need to save some data in my application, when the application terminates and even if it crashes. I know that applicationWillTerminate is called when application terminates but I am not sure which method is called when application crashes.
Can someone help me here?
I need to save some data in my application, when the application terminates and
Share
Well you could add your own exception handler, to catch the error.
First you need to define the exception method:
Then tell the app to use your exception handler:
There is no way to make the app save data on crashing, since saving could be the reason for the crash!