Problem getting the Progressbar in the Navbar
I'm trying to put a progress bar in the navbar. I copied the code, verbatim, from KitchenSink and it just doesn't pop up.
Any ideas? Compiling to 3.1, using Ti SDK 1.3.0.
Here's the code for reference
var ind3=Titanium.UI.createProgressBar({
width:100,
min:0,
max:10,
value:0,
color:'#fff',
message:'Downloading 0 of 10',
font:{fontSize:14, fontWeight:'bold'},
style:Titanium.UI.iPhone.ProgressBarStyle.PLAIN
});
win.setTitleControl(ind3);
1 Answer
-
I got it. In case anyone else is having this problem, you have to run the .show() on it after it's been added to the view.