Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Does iPhone has mechanism like registry ?

Hi Guys,

Does iPhone has mechanism like windows registry to store the state of the application?

How generally you save the state of the application when user exit from the application?

— asked May 28th 2010 by Chirag Patel
  • exit
  • iphone
  • registry
  • state
  • windows
0 Comments

1 Answer

  • Use 'properties' which get stored in between launches of an app.

    eg:

    to store a value as a property called 'some_property' :

    Ti.App.Properties.setString('some_property','some value');
    

    then to get the value again:

    var theStoredValue = Ti.App.Properties.getString('some_property');
    

    hth

    — answered May 28th 2010 by Kosso
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.