How to save ListView content?

When an iOS device runs out of power and initiates a shutdown, are running apps signaled such that they could "save" unsaved form content?

  • For example, if a person using Quora's iPhone app fails to respond to the low power warning, when shutdown occurs they will lose an answer or comment they were writing. If it were possible for the app to perform a save-draft before the app was terminated, then when power was restored, the user could continue with their content authoring.

  • Answer:

    Yes. When the app is going to be terminated by the operating system for whatever reason, the app delegate is sent the applicationWillTerminate: message. This is where you would initiate the saving of a draft to avoid data loss.

Ben Reimers at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.