Skip to content

Instantly share code, notes, and snippets.

@jab416171
Created February 16, 2012 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jab416171/1847216 to your computer and use it in GitHub Desktop.
Save jab416171/1847216 to your computer and use it in GitHub Desktop.
/* The Ti.API.log lines print "undefined", but the labels still show up with the correct data. How?
* Ti.API.log calls the native logcat for Android and iOS, I could just do an alert and get the same results. */
for(property in task) {
var labelName = Ti.UI.createLabel({
text:property
});
var labelValue = Ti.UI.createLabel({
text:task[property],
color:"#232323"
});
Ti.API.log(property);
Ti.API.log(task[property]);
Ti.API.log(labelName.text);
Ti.API.log(labelValue.text);
view.add(labelName);
view.add(labelValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment