[TIMOB-15199] iOS7: NavigationWindow missing NavBar button on a modal window
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2013-09-27T21:02:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 20, 2013 Sprint 20 API |
| Components | iOS |
| Labels | dev-invalidate, ios7, ipass1, supportTeam |
| Reporter | Eduardo Gomez |
| Assignee | Vishal Duggal |
| Created | 2013-09-16T16:47:22.000+0000 |
| Updated | 2017-03-28T20:20:11.000+0000 |
leftNavButton must be set on the baseControlWin, not the navigation window
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();Closing