How to retrive ios app killed state

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

hi, Any one can help how to retrieve ios(using titanium studio) killed state.means suppose my ios app killed at second window and again we try to start the app it should be start from second window not from relaunch from begining.please help me

1 Answer

We had a tabbed based app that needed to maintain state:

We stored Tab, Window, and Details as Ti.App.Properties.

  • Tab was an integer equal to the value of the tab

  • Window was an integer equal to the depth of the window stack.

  • Details was a string value equal to the content details that came out of a table row.

— answered 10 months ago by Stephen Feather
answer permalink
2 Comments
  • Using the value stored for the Tab, set the activeTab to that value.

    The window first loaded into that tab checks to see if the value of window = 1, if the value is higher than 1, it knows its not the end, so opens its child into the stack and so on until at the right window depth.

    That last window then uses the value in Details to display information for the user.

    — commented 10 months ago by Stephen Feather

  • Each time a window is opened or closed, you need to set the window stack depth property.

    Each time a tab is changed, need to set the Tab value, and the window stack depth.

    — commented 10 months ago by Stephen Feather

Your Answer

Think you can help? Login to answer this question!