Absolute Ripple
  • Absolute Ripple
  • Contact

IOS 6 State Preservation and Restoration

28/9/2012

0 Comments

 
iOS 6 provides a build in mechanism to preserve and subsequently restore the state of your app. This post is not about how to implement that. It is a brief note about how to test this behavior.
We need to simulate the application being terminated by the OS whilst it is in the background. To do so, perform the following steps exactly:
1. Run the app in the Simulator by pressing "Run" in xcode
2. Put the app into the background by pressing the Home button
3. Stop the app by pressing "Stop" in xcode
The above should trigger the operation of the preservation routines in your app assuming you have set it up properly of course.
To test the restoration process, simply Run the app again. You can do this in xcode or just click the app icon in the simulator. When the app is running again, it should, assuming things are set up properly, trigger the relevant restoration routines in the app and restore the app to its previous state.
Note: an app's preserved state is deleted if the user force quite the app, i.e. don't use the multi-tasking bar to kill the app to test preservation and restoration.

0 Comments

    Archives

    August 2013
    July 2013
    June 2013
    May 2013
    January 2013
    October 2012
    September 2012
    March 2012
    February 2012

    Categories

    All
    Apple Policy
    In App Purchase
    Ios Programming
    Our Apps

    RSS Feed

    Disclaimers

    Here are some resources that I find useful in writing iOS apps. These are not necessarily unique as they are based on various sources online.
    This is mainly to provide a source of reference to myself and my associates but if it can be of use to someone else, that is good.
    Note that information is provided here as is. Use at your own risk. There is no guarantee that it is accurate. We will update the information as time and resources permit.

    Powered by Create your own unique website with customizable templates.