Reloading application

You must Login before you can answer or comment on any questions.

Hi:

I recently finish my app an was approved by apple but when i press the home button on the iphone and reopen the application it stays in the last state in which i leave it

is there a way to avoid this state saving in the application?

2 Answers

With android, there is a recently-added (although it is certainly in 1.4.X) exitOnClose property that can be set on the window, although it is only effective if set at window creation. See the description in the docs here

I am not sure how to enable this behaviour for iOS, though, so this may not be useful to you.

  1. Open your info.plist file
  2. Add Key UIApplicationExitsOnSuspend or Select Application does not run in background
  3. Set key to YES
  4. Save

The file should be in your iphone/build directory

Your Answer

Think you can help? Login to answer this question!