Howdy,
I have a fun little 'hello world' related app I'm making to get to know Titanium. It works GREAT, changing the value of a label once per second. However, when I add navBarHidden: true
when creating a window, setinterval only runs twice or so, then gets stuck.
This is happening with my android emulator. Do I need to address this differently?:
Titanium.UI.setBackgroundColor('#000'); var app = Titanium.UI.createWindow({ title:'Amazing Newb App', backgroundColor:'#0099FF', navBarHidden: true }); var label = Titanium.UI.createLabel({ color:'#FFFFFF', text:'Yay for mobile apps!', font:{fontSize:25,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); var blinkVis = 1; app.add(label); app.open({}); setInterval(function () { if(blinkVis == 1) { label.text = "Whoohooo!"; blinkVis = 0; } else { label.text = "Yay for mobile apps!"; blinkVis = 1; } }, 1000);Thanks much in advance,
Chris