How can i hide titlebar on a window
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff',
barColor:'#005524',
url:'main_windows/homepage.js'
});
what command can i write so it doesnt put the title on top, on the bar.
5 Answers
-
id be careful with methods not in the doc (mostly for fear of deprecation or not supported). when creating a window you can pass in the
navBarHidden:true
prop.var win = Ti.UI.createWindow({ fullscreen:false, navBarHidden:true, backgroundColor: '#fff' });
-
Try this
win1.hideNavBar()
-
You can try add every variable related to your window with "navBarHidden : true" attribute, works for me.
Example:var myWindow = Titanium.UI.createWindow({ navBarHidden : true, }); var myTab = Titanium.UI.createTab({ navBarHidden : true, window : myWindow }); var myTabGroup = Titanium.UI.createTabGroup({ navBarHidden : true, }); myTabGroup.addTab(myTab); myTabGroup.open({fullscreen : true});
-
hey tamas, where did you find this answer in the documentation?
-
Hi
I use a lot the kitchensink examples, and the git sources.It might be difficult in the beginning but after a while you get used to and even start learning objC ( for free :D )