Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* 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
You can’t perform that action at this time.