How to activate and deactivate tabbed bar programmatic .

Posted by user291247 on Stack Overflow See other posts from Stack Overflow or by user291247
Published on 2010-04-07T11:28:42Z Indexed on 2010/04/07 11:33 UTC
Read the original article Hit count: 232

Filed under:

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);

© Stack Overflow or respective owner

Related posts about titanium