Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15199] iOS7: NavigationWindow missing NavBar button on a modal window

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-09-27T21:02:21.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 20, 2013 Sprint 20 API
ComponentsiOS
Labelsdev-invalidate, ios7, ipass1, supportTeam
ReporterEduardo Gomez
AssigneeVishal Duggal
Created2013-09-16T16:47:22.000+0000
Updated2017-03-28T20:20:11.000+0000

Description

Comments

  1. Vishal Duggal 2013-09-16

    leftNavButton must be set on the baseControlWin, not the navigation window
  2. Sabil Rahim 2013-09-27

    you want to use this instead.
       var rootWindow = Ti.UI.createWindow({
           backgroundColor: 'blue'
       });
        
       var label = Ti.UI.createLabel({
           text:'RootWindow'
       });
        
       rootWindow.add(label);
        
       var cancelButton = Ti.UI.createButton({
           systemButton : Ti.UI.iPhone.SystemButton.CANCEL,
           title : "TEST"
       });
        
       cancelButton.addEventListener('click', function(){
           backgroundWindow.close();
       });
       var baseControlWin = Ti.UI.createWindow({
           backgroundColor : "blue",
           leftNavButton : cancelButton,
       });
        
       var label2 = Ti.UI.createLabel({
           text:'Nav Window'
       });
        
       baseControlWin.add(label2);
        
       var backgroundWindow = Ti.UI.iOS.createNavigationWindow({
           modal : true,
           window : baseControlWin,
           orientationModes : [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT]
       });
        
       rootWindow.addEventListener('open',function(){
           	backgroundWindow.open(); 
       });
        
        
       rootWindow.open();
       
  3. Eric Merriman 2017-03-28

    Closing

JSON Source