How to change name of tabbed bar.
Hello,
I am using two tabbed which is added in navigation bar and
toolbar area of my window. but I want to set activate and deactivate tabs and change its name programmatic without clicking on particular tabs how it is possible? my code is:
code:
var tb4 = Titanium.UI.createTabbedBar({
index:0,
labels:['Home','Log in','Upload video'],
backgroundColor:'#333333',
style:Titanium.UI.iPhone.SystemButtonStyle.BAR
});
win1.setTitleControl(tb4);
var tb2 = Titanium.UI.createTabbedBar({
labels:['Search','Most viewed','Most recent'],
backgroundColor:'#333333',
style:Titanium.UI.iPhone.SystemButtonStyle.BAR
});
var flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
win1.setToolbar([flexSpace,tb2,flexSpace]);