{ "id": "154635", "key": "TIMOB-20302", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-15T08:58:27.000+0000", "created": "2016-02-02T10:22:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "qe-5.4.0", "toolbar", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-06-09T23:16:42.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": "There is a [community PR|https://github.com/appcelerator/titanium_mobile/pull/6816] to support hiding and showing the toolbar on iOS (toolbars are not available on Android, yet).\r\n\r\nCurrently the docs and example code are missing, I will assist the community member to cherry-pick his changes and add the docs and test case in a new PR.", "attachment": [], "flagged": false, "summary": "iOS: Support showing and hiding the toolbar in Ti.UI.Window", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 574, "state": "closed", "name": "2016 Sprint 4 SDK", "startDate": "2016-02-13T01:33:48.415Z", "endDate": "2016-02-27T01:33:00.000Z", "completeDate": "2016-02-29T03:44:48.886Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "375723", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7725\r\n\r\n(Unit tests included)\r\n\r\nDemo:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar nav = Ti.UI.iOS.createNavigationWindow({window: win});\r\nvar isHidden = false;\r\n\r\nvar btn = Ti.UI.createButton({\r\n top: 100,\r\n title : \"Hide toolbar\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n if (isHidden === true) {\r\n win.showToolbar();\r\n } else {\r\n win.hideToolbar();\r\n }\r\n\r\n btn.setTitle(isHidden ? \"Hide toolbar\" : \"Show toolbar\");\r\n isHidden = !isHidden;\r\n});\r\n\r\nwin.add(btn);\r\nwin.setToolbar([\r\n Ti.UI.createButton({title: \"Toolbar\"})\r\n], {\r\n animated: false\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-02-02T10:59:56.000+0000", "updated": "2016-02-15T08:55:50.000+0000" }, { "id": "376914", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "APPROVED! PR merged!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-15T08:58:19.000+0000", "updated": "2016-02-15T08:58:19.000+0000" }, { "id": "387989", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, toolbar can be hidden and shown. \r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605201934\r\nAppc NPM: 4.2.7.-2\r\nApp CLI: 5.4.0-11\r\nXcode 7.3\r\nNode v4.2.6\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-09T23:16:21.000+0000", "updated": "2016-06-09T23:16:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }