Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Preventing NavBar Navigation

Is there a way to prevent Back Button Navigation after asking the user a question eg whether the user wishes to save details on the current window?

— asked March 19th 2010 by Mark Eggers
  • navbar
  • navigation
0 Comments

1 Answer

  • Accepted Answer

    You could maybe override the native back button and set your own using Ti.UI.currentWindow.setLeftNavButton();

    Then apply your own logic to a click on it - using Ti.UI.currentWindow.close() when you want to close/'go back'.

    I don't know if it's possible to override the native (pointy) back button click.

    — answered March 19th 2010 by Kosso
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.