{ "id": "120277", "key": "TIMOB-15493", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-09-20T19:56:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:14.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On the device, if you create a tabgroup and in one of the windows, you add a mapview, then you switch between the tabs. If the navbar has a specific color set and it is set to translucent, the navbar color will change to black. It works as expected on the simulator.\r\n\r\n{code}\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbarColor:'#ff0000',\r\n extendEdges: [Ti.UI.EXTEND_EDGE_ALL],\r\n})\r\n\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\tbarColor:'#ff0000',\r\n extendEdges: [Ti.UI.EXTEND_EDGE_ALL],\r\n})\r\n\r\n\r\nvar mapview2 = Ti.Map.createView();\r\nwin2.add(mapview2);\r\n\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle:L('Window 1'),\r\n\twindow:win1\r\n});\r\n\r\nvar tab2 = Ti.UI.createTab({\r\n\ttitle:L('Map'),\r\n\twindow:win2\r\n});\r\n\r\nvar self = Ti.UI.createTabGroup({\r\n\ttabs:[tab1,tab2]\r\n});\r\n\r\nself.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS7: If a map is loaded into a window in a tab group, the navbar color is not maintained if the navbar is set to translucent", "creator": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone: 4gs iOS7\r\nTitanium SDK: 3.1.4.v20130918151553\r\nXCode: Version 5.0 (5A1413)", "comment": { "comments": [ { "id": "273937", "author": { "name": "martinvm", "key": "martinvm", "displayName": "Martin van Mierloo", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "martinvm", "key": "martinvm", "displayName": "Martin van Mierloo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-10-05T18:41:13.000+0000", "updated": "2013-10-05T19:21:02.000+0000" }, { "id": "274099", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Please refer to the following [document|http://docs.appcelerator.com/titanium/latest/#!/guide/iOS_7_Migration_Guide-section-37533766_iOS7MigrationGuide-SummaryofChangestotheTitaniumSDK]\n\n- On iOS 7, the status bar and navigation bar are translucent by default. On iOS 6 and prior, they are not translucent.\n\n- The status bar is controlled by the currently displayed window and can no longer be controlled on the fly in iOS 7.\n\nThis is working as expected on iOS7", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2013-10-07T23:06:04.000+0000", "updated": "2013-10-07T23:06:04.000+0000" }, { "id": "274102", "author": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, I've read that document and can accurately get a translucent navigation bar to be a certain color, but when you add a map to a window, the translucent navbar turns to black regardless of the color set. If you can post code that loads a map in a window and keeps a translucent navbar a certain color when switching between tabbar views on the device, then I'll concede it's not a bug. ", "updateAuthor": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-07T23:12:30.000+0000", "updated": "2013-10-07T23:12:30.000+0000" }, { "id": "274110", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~sundev] , The code provided in the ticket works, also with the following modification:\n\n{code:title=index.js|borderStyle=solid}\n\nvar win1 = Ti.UI.createWindow({\n barColor:'#ff0000',\n extendEdges: [Ti.UI.EXTEND_EDGE_ALL],\n statusBarStyle:Titanium.UI.iPhone.StatusBar.TRANSLUCENT_BLACK,\n backgroundColor: \"white\"\n});\n \n \nvar win2 = Ti.UI.createWindow({\n barColor:'#ff0000',\n extendEdges: [Ti.UI.EXTEND_EDGE_ALL],\n statusBarStyle:Titanium.UI.iPhone.StatusBar.TRANSLUCENT_BLACK\n});\n{code}\n ", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2013-10-08T00:10:24.000+0000", "updated": "2013-10-08T00:10:24.000+0000" }, { "id": "274112", "author": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The code you posted of course works, but put a map in there and add tabs and see if you can get the navbar to stay white. Also, it works fine on the simulator, but not on my 4s or the duplicate ticket's 4. ", "updateAuthor": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-08T00:14:29.000+0000", "updated": "2013-10-08T00:14:29.000+0000" }, { "id": "274116", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~sundev] The code that I posted is to modified the original code in the ticket, using that piece of code with the combination of the tabs and the maps, it's still working.", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2013-10-08T00:29:57.000+0000", "updated": "2013-10-08T00:29:57.000+0000" }, { "id": "274117", "author": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still not working on device. Works initially for first window, then for second tab, but when go back to first, the first window's navbar changes to black and is no longer red.", "updateAuthor": { "name": "sundev", "key": "sundev", "displayName": "Sundev Lohr", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-08T00:39:44.000+0000", "updated": "2013-10-08T00:39:44.000+0000" }, { "id": "274561", "author": { "name": "rbroecker@vater-gruppe.de", "key": "rbroecker@vater-gruppe.de", "displayName": "René Wilby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm experiencing the same behavior Sendev Lohr describes on an iPhone 4 and iPad 2 each of them with the latest iOS 7. On an iPhone 5 with iOS 7 the code Sundev Lohr posted works fine.\n\nI'm using Titanium SDK 3.1.3.GA", "updateAuthor": { "name": "rbroecker@vater-gruppe.de", "key": "rbroecker@vater-gruppe.de", "displayName": "René Wilby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-10T06:45:07.000+0000", "updated": "2013-10-10T06:45:07.000+0000" }, { "id": "276578", "author": { "name": "l0wb1rd", "key": "l0wb1rd", "displayName": "Low Bird", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can confirm that this only happens on device, not in the simulator. Tested on iPhone4 and iPad2 with iOS7. Only happens if the windows have transculent: true (default)", "updateAuthor": { "name": "l0wb1rd", "key": "l0wb1rd", "displayName": "Low Bird", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T13:45:20.000+0000", "updated": "2013-10-24T13:45:20.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }