Looks like it's undocumented but for some reason setting the leftNavButton on a window makes it fade in when the window is shown, righNavButton just appears fine.
Anyone else had a problem with this? I've added it to a default project and it definitely does the same thing.
var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win1.add(label1); // 'Collections' window stuff var collectBtn = Titanium.UI.createButton({ title:"Collections", style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN }); win1.setLeftNavButton(collectBtn); // 'About' window stuff var aboutBtn = Titanium.UI.createButton({ title:"About", style:Titanium.UI.iPhone.SystemButtonStyle.PLAIN }); win1.setRightNavButton(aboutBtn);
2 Answers
I guess it's because on the left there's the possibility to have a backBtn. I honestly don't think you can do anything about it, unless you implement your own custom nav bar (a view with buttons on it).
Yeah seems like there are loads of posts about it and a bug submission.
Your Answer
Think you can help? Login to answer this question!