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
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.