{ "id": "62185", "key": "TIMOB-1553", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-25T13:30:46.000+0000", "created": "2011-04-15T02:55:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_navgroup", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T13:59:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Sample code from pastebin: http://pastebin.com/QeeGwMtF\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTi.UI.setBackgroundColor('#000');\r\n\r\n\r\n// refresh button\r\nvar refreshButton = Ti.UI.createButton({\r\n\tsystemButton: Titanium.UI.iPhone.SystemButton.REFRESH\r\n});\r\n\r\n// add button\r\nvar addButton = Ti.UI.createButton({\r\n\tsystemButton: Titanium.UI.iPhone.SystemButton.ADD\r\n});\r\n\r\n\r\n\r\n// create navgroup\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle: 'test',\r\n leftNavButton: refreshButton,\r\n rightNavButton: addButton\r\n});\r\n\r\nvar nav = Ti.UI.iPhone.createNavigationGroup({\r\n window: win1\r\n});\r\n\r\nwin.add(nav);\r\n\r\nwin.open();\r\n\r\n\r\naddButton.addEventListener('click', function() {\r\n\tvar addWindow = Ti.UI.createWindow();\r\n\tnav.open(addWindow, {\r\n\t\tanimated: true\r\n\t});\r\n});\r\n{code}\r\n\r\nClick the + button, then click Back, and see the leftNavButton fade-in twice.", "attachment": [], "flagged": false, "summary": "iOS: Navigating back in a navigationGroup makes the leftNavButton fade-in twice", "creator": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "subtasks": [], "reporter": { "name": "mofle", "key": "mofle", "displayName": "Sindre Sorhus", "active": true, "timeZone": "Europe/Oslo" }, "environment": null, "comment": { "comments": [ { "id": "126020", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}
There is a Helpdesk ticket reporting this problem: http://developer.appcelerator.com/helpdesk/view/75911
\nHere is a simple runnable example:
\n\n var win = Titanium.UI.createWindow();\n var win1 = Titanium.UI.createWindow({\n backgroundColor:\"red\",\n title:\"Red Window\"\n });\n\n var navBtn = Ti.UI.createButton({title:'button'});\n win1.leftNavButton = navBtn;\n\n var nextBtn = Ti.UI.createButton({\n title:'go to next window',\n width:200,\n height:50\n });\n win1.add(nextBtn);\n\n var nav = Titanium.UI.iPhone.createNavigationGroup({\n window: win1\n });\n win.add(nav);\n win.open();\n\n nextBtn.addEventListener('click', function(){\n var win2 = Titanium.UI.createWindow({\n backgroundColor:\"blue\",\n title:\"Blue Window\"\n });\n nav.open(win2,{animated:true});\n });
\n
\nTested on 1.6 Resease
\niPad and iPhone simulator 4.2
Moving navigation issues to Sprint 16.