{ "id": "105923", "key": "AC-2303", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-05T23:49:25.000+0000", "created": "2012-12-04T13:32:33.000+0000", "labels": [ "Backbutton", "barImage", "ios", "orientation" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:19.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have a orientation listener that swaps out the barImage of the navGroup when orientation is changed. This works great. BUT: when pressing the backbutton, and Back Button is gone in every new window I open. \r\n\r\nIf I comment out this orientationchange listener, then the backButton appears as normal. \r\n\r\nIts not a custom backbutton.\r\n\r\n{code}\r\nTi.Gesture.addEventListener('orientationchange', orientationHandler);\r\nfunction orientationHandler(e){\r\n\tswitch(e.orientation){\r\n case Ti.UI.PORTRAIT:\r\n case Ti.UI.UPSIDE_PORTRAIT:\r\n \twindow.setBarImage(\"/images/header.png\");\r\n break;\r\n case Ti.UI.LANDSCAPE_LEFT:\r\n case Ti.UI.LANDSCAPE_RIGHT:\r\n \twindow.setBarImage(\"/images/header_wide.png\");\r\n break;\r\n case Ti.UI.UNKNOWN:\r\n default:\r\n // do nothing\r\n break;\r\n\t}\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: BackButton disapears when barImage is redefined", "creator": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti Studio 2.1.2.201208301612\r\nSDK 2.1.4.v20121030173408\r\niOS 6.0", "comment": { "comments": [ { "id": "246112", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested the following code with Titanium 3.0.2.GA\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n modal: true,\r\n orientationModes:[1,2,3,4],\r\n backgroundColor: 'white',\r\n\r\n});\r\n\r\nwin.setBarImage(\"KS_nav_ui.png\");\r\n\r\nTi.Gesture.addEventListener('orientationchange', orientationHandler);\r\nfunction orientationHandler(e){\r\n switch(e.orientation){\r\n case Ti.UI.PORTRAIT:\r\n case Ti.UI.UPSIDE_PORTRAIT:\r\n win.setBarImage(\"KS_nav_ui.png\");\r\n break;\r\n case Ti.UI.LANDSCAPE_LEFT:\r\n case Ti.UI.LANDSCAPE_RIGHT:\r\n win.setBarImage(\"KS_nav_views.png\");\r\n break;\r\n case Ti.UI.UNKNOWN:\r\n default:\r\n // do nothing\r\n break;\r\n }\r\n}\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T23:49:25.000+0000", "updated": "2013-04-05T23:49:25.000+0000" }, { "id": "280670", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Can't reproduce with 3.1.3. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-22T00:28:26.000+0000", "updated": "2013-11-22T00:28:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }