Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Home Button without Back button at the header

$
0
0

Hello, am a Ti newbie. I am trying to create a home button at the header at the right near the back button. Is there a simple way to create a home button after say two pages have been navigated without showing the back button.

Here is my code:

var homeButton=Ti.UI.createButton({title:"Home"});
homeButton.addEventListener("click",function(e){
    var win=Ti.UI.createWindow({
        url:"../homePage.js"
    });
    Ti.UI.currentTab.open(win,{animate:true})
});
 
win.setRightNavButton(homeButton);
Though it goes to the home button (homePage.js) it still shows the back button which is not a normal user experience. Please help .Thanks.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>