Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I've pared this down to the point where I just created a test app and dropped the sample code from the API doc into app.js. When row.add or picker.add is called, the error "Cannot call method "add" of null" is returned.
- Hopefully I'm just doing something stupid but I can't see what it is.
- Here's the code (from the docs):
- var picker = Titanium.UI.createPicker();
- var row = Titanium.UI.createPickerRow();
- var label = Titanium.UI.createLabel({
- text: 'foo',
- font: { fontSize: 24, fontWeight: 'bold' },
- width: 'auto',
- height: 'auto'
- });
- row.add(label);
- picker.add(row);
Add Comment
Please, Sign In to add comment