Skip to content

Instantly share code, notes, and snippets.

@srahim
Last active December 14, 2015 03:29
Show Gist options
  • Save srahim/5021825 to your computer and use it in GitHub Desktop.
Save srahim/5021825 to your computer and use it in GitHub Desktop.
ti.app.properties
var props = Titanium.App.Properties.listProperties();
Ti.API.info("Number of properties set: "+props.length);
for (var c=0;c<props.length;c++)
{
var value = Titanium.App.Properties.getString(props[c]);
Titanium.API.info(props[c]+" = "+value);
}
@joshthecoder
Copy link

[INFO] Number of properties set: 8
[INFO] com.sandbox.uuid = 7CB84AC1-A6CD-4F3B-B105-AFB5A38B7789
[INFO] AppleLanguages = undefined
[INFO] AppleITunesStoreItemKinds = undefined
[INFO] AppleLocale = en_US
[INFO] ti.ui.defaultunit = system
[INFO] NSLanguages = undefined
[INFO] foo = 1
[INFO] NSInterfaceStyle = macintosh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment