I am using 2 tabbed bars in one window, I want to activate and deactivate it programmatic .
how it is possible?
Code:
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]);
// title control
var tb4 = Titanium.UI.createTabbedBar({
index:0,
labels:['Home','Log in','Upload video'],
backgroundColor:'#333333',
style:Titanium.UI.iPhone.SystemButtonStyle.BAR
});
win1.setTitleControl(tb4);