Search code examples
iosmobiletitaniumappcelerator

How to store app settings in iOS, like INI / CONF?


I am starting with iOS programming. I have a question hope you can help.

I have a test app as an rss reader that reads from a URL. For example: abc.com/feed

I want to store some data in a setting file like INI on Windows or CONF on Linux, example:

URL = abc.com/feed
NumberOfItem = 10
Interval = 3 # minus

What kind of file does an iOS app use to store it's settings? Is there any method/class/API/... which supports read/write on it?

P.S. I am using Titanium at Appcelerator.

Thanks so much!


Solution

  • Use Properties.

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.App.Properties-module