Search code examples
windowtitaniumappcelerator

How do I pop to a specific previous window in Titanium?


I have pushed the Window from

A->B->C->D

Where D is Final Window from there I have to go back to window A. How I will do it in titanium?


Solution

  • you can use fireEvent for that like

    just add this code into your B window

      Ti.App.addEventListener('closeWinB',function(e){
        B.close();
    });
    

    and write below code when you want to redirect to window A

    Ti.App.fireEvent('closeWinB');
    

    hope it will work for you....