currentWindow
I am not able to use currentWindow.
det_win = Titanium.UI.createWindow({
title:e.rowData.title,
backgroundColor:'#fff',
translucent:true,
barColor:'#000'
});
det_win.hideNavBar();
more code follows, I'm attaching some views, then open the window.
index_tab.open(det_win,{animated:true});
if later I try
Titanium.UI.currentWindow.showNavBar();
is not working, but
det_win.showNavBar();
works.
Actually I never was able to use currentView and currentWindow.
What I do wrong ?
Thanks
1 Answer
-
Accepted Answer
Titanium.UI.currentWindow
and related properties are only available in the subcontext of a window opened fromTitanium.UI.createWindow
with a URL to javascript. Inside that JS, you can useTitanium.UI.currentWindow
to get to the reference to the window.Otherwise in your example, just use you
det_win
since you already have the reference.