"Back" button in title bar?
How would I generate a button in a new window's title bar with the "Back" arrow-alike aesthetic?
1 Answer
-
If you open a new window with and it has a bar at the top it will have a button to the previous page automatically. You can also put a button into the bar on your own
var back = Ti.UI.createButton({ title: "Back", style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED }); back.addEventListener("click", function() { Ti.UI.currentWindow.close(); }); Ti.UI.currentWindow.setLeftNavButton(back);