Adding a Back button to a iOS app in Titanium Appcelerator without TabGroup or NavBar -
i'm developing titanium appcelerator ios. manage manually 'back' button using properties of window, can set left , right buttons.
i'm trying code:
var win = titanium.ui.currentwindow; win.backgroundcolor = '#fff'; var b = titanium.ui.createbutton({title:'back'}); win.setleftnavbutton(b); b.addeventlistener('click', function() { win.close(); });
but no button showed.
swanand right want add together more thing if utilize modal property of window open can utilize setleftnavbutton method set button in navigation bar if not want utilize tab grouping or navigation grouping or modal property need add together button in window left,top,width , height property.
you can utilize below example....
var win = titanium.ui.currentwindow; win.backgroundcolor = '#fff'; var b = titanium.ui.createbutton({ title:'back', width : ti.ui.size, height : ti.ui.size, top : 10, left : 10 }); win.add(b);
titanium appcelerator
No comments:
Post a Comment