{ "id": "164341", "key": "TIMOB-24107", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-06T14:57:39.000+0000", "created": "2016-11-03T09:37:40.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53365", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "162104", "key": "TIMOB-23684", "fields": { "summary": "iOS: Expose missing iOS8 properties to hide NavigationBar", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-11-09T15:49:08.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": "When I upgraded to latest 6.0.0 RC this morning, the property navBarHidden doesnt seem to have any effect on any window. Also, the \"swipeBack\" is possible even though I specify windowObj.swipeToClose = false;\r\n\r\n(I guess these issues are together)\r\n{code:javascript}\r\nvar windowObj = Ti.UI.createWindow({\r\n translucent: false,\r\n navBarHidden: true\r\n});\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: windowObj\r\n});\r\nnav.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Setting \"navBarHidden\" before opening Ti.UI.iOS.NavigationWindow has no effect (regression)", "creator": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Latest Ti SDK & Appc RC 6.0.0, for iOS.", "comment": { "comments": [ { "id": "400346", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Mathias,\r\n\r\nSo far the {{navBarHidden}} property, it needs to be called when the window is already added to a navigation window, e.g.:\r\n{code:javascript}\r\nvar windowObj = Ti.UI.createWindow({\r\n translucent: false,\r\n backgroundColor: \"#f00\"\r\n});\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: windowObj\r\n});\r\n\r\n\r\nwindowObj.addEventListener(\"focus\", function() {\r\n windowObj.setNavBarHidden(true); \r\n});\r\nnav.open();\r\n{code}\r\nbut I'm sure we can improve the code to also work beforehand by caching the value and apply it on the creation of the navigation window. For the {{swipeToClose}} issue, I have not been able to reproduce it using this code:\r\n{code:javascript}\r\nvar windowObj = Ti.UI.createWindow({\r\n translucent: false,\r\n backgroundColor: \"#f00\"\r\n});\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: windowObj\r\n});\r\n\r\n\r\nwindowObj.addEventListener(\"focus\", function() {\r\n nav.openWindow(Ti.UI.createWindow({\r\n swipeToClose: false\r\n }))\r\n})\r\n\r\n\r\nnav.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-03T16:18:28.000+0000", "updated": "2016-11-03T16:18:28.000+0000" }, { "id": "400458", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, there was a problem here. Exposing the setter caused problems for the key-value handling in the internal {{viewDidAppear:}} method. So since they all are availably on-creation anyway, I moved the setters to the internal {{TiWindow}} proxy and exposed the default values to have clean getters. \r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/8585\r\nPR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8586\r\n\r\nTest-Case:\r\n{code:javascript}\r\nvar windowObj = Ti.UI.createWindow({\r\n navBarHidden: true,\r\n hidesBarsOnSwipe: true,\r\n hidesBarsOnTap: true,\r\n hidesBarsWhenKeyboardAppears: true,\r\n});\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: windowObj\r\n});\r\nnav.open();\r\n\r\nTi.API.warn(\"navBarHidden = \" + windowObj.navBarHidden);\r\nTi.API.warn(\"hidesBarsOnSwipe = \" + windowObj.hidesBarsOnSwipe);\r\nTi.API.warn(\"hidesBarsOnTap = \" + windowObj.hidesBarsOnTap);\r\nTi.API.warn(\"hidesBarsWhenKeyboardAppears = \" + windowObj.hidesBarsWhenKeyboardAppears);\r\n{code}\r\n\r\nYou can test the default values by removing the properties form the window and see the result. They should all default to {{false}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-05T23:04:47.000+0000", "updated": "2016-11-05T23:09:46.000+0000" }, { "id": "400654", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, navBarHidden now works as intended as well as the above associated properties, in both cases of TRUE and FALSE. Removing the properties is confirmed to default as FALSE.\r\n\r\nTested On:\r\niPhone 7 10.1.1 Device & Simulator\r\niPhone 5S 9.3.5 Device\r\nMac OS Sierra (10.12.1)\r\nTi SDK: 6.0.0.v20161107075927\r\nAppc Studio: 4.8.0.201611020954\r\nAppc NPM: 4.2.8-9\r\nApp CLI: 6.0.0-68\r\nXcode 8.1\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-11-09T15:46:41.000+0000", "updated": "2016-11-09T15:46:41.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }