Titanium Community Questions & Answer Archive

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

Saving preferences, annotations and Slider values

Evening

Couple of questions. do I use the Titanium.App.Properties to store users preferences?

Can a map pin show the annotation on launch? and the final question would be how do I get the slider to show whole numbers? dont want the decimal output.

Hope this makes sense.

Many thanks

— asked March 23rd 2010 by Mark Pierce
  • map
  • properties
  • ui
0 Comments

1 Answer

  • Accepted Answer

    1) You can use the Properties API or the Database API to store data, but if you want to use an application settings page (within the iPhone's Settings app), see this link:

    http://www.codestrong.com/timobile/howto/create-iphone-app-preferences/

    2) you should be able to do this:

    mapview.selectAnnotation(mapview.annotations[1].title,true);

    to show an annotation immediately. the API takes the annotation title and whether to animate the showing of the annotation

    3) to do this you should just round the value of the slider (for display purposes). one option is to use Math.round.

    — answered March 23rd 2010 by Nolan Wright
    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.