Created
February 16, 2012 19:41
-
-
Save jab416171/1847216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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