{ "id": "62253", "key": "TIMOB-1621", "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": { "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": "2017-05-02T17:47:52.000+0000", "created": "2011-04-15T02:57:35.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-26T17:51:45.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": "{html}

Setting navBarHidden/tabBarHidden values only take effect once\r\nyou switch to another tab.

\r\n

Once they're hidden, there is no way to unhide them without\r\nclosing the window. Ideally, displaying them again should be this\r\neasy:

\r\n
\r\nTi.UI.currentWindow.addEventListener('click', function(e) {\r\n   Ti.UI.currentWindow.navBarHidden = false;\r\n   Ti.UI.currentWindow.tabBarHidden = false;\r\n} );\r\n
\r\n

Because the effect is not immediate, making a photo gallery\r\noperate like the default iOS photos app is impossible.

{html}", "attachment": [], "flagged": false, "summary": "iOS: navBarHidden/tabBarHidden assignments do not have immediate effect", "creator": { "name": "glen", "key": "glen", "displayName": "Glen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "glen", "key": "glen", "displayName": "Glen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126205", "author": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I second that. Somebody recommended

\n
\nwin.hideTabBar({ animated:true });\nwin.tabGroup.setActiveTab(1); // hack to hide tabs\nwin.tabGroup.setActiveTab(0); // and update the screen\n
\n

but this causes an ugly flicker.

{html}", "updateAuthor": { "name": "tomquas", "key": "tomquas", "displayName": "tom quas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:36.000+0000", "updated": "2011-04-15T02:57:36.000+0000" }, { "id": "126206", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Another reference ticket: http://developer.appcelerator.com/helpdesk/view/65781

\n

Once hiding a tabBar, no child windows can show that tabBar\nagain.

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:57:36.000+0000", "updated": "2011-04-15T02:57:36.000+0000" }, { "id": "181429", "author": { "name": "greg.jost@gmail.com", "key": "greg.jost@gmail.com", "displayName": "Greg Jost", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Basically, you pass in your base window and tab group to subsequent windows, and do the operations above. This extremely sloppy solution works to hide the tab bar, but how do you get the tab group to show again after hiding. (e.g. go back in the navigation group stack). This doesn't work:\r\n\r\nvar thisWindow = Titanium.UI.currentWindow; \r\nthisWindow._base.tabBarHidden = false; \r\nthisWindow._tabGroup.setActiveTab(1); // hack to hide tabs\r\nthisWindow._tabGroup.setActiveTab(0); // and update the screen\r\nTi.API.info(\"tabBarHidden=\" + thisWindow._base.tabBarHidden);\r\n\r\nIdeally, the bug would be fixed and toggling tabBarHidden would work (preferably on the current window, not the base), but I'm desperate for any solution at this point. This is ruining my application.\r\n\r\nPLEASE HELP! :)", "updateAuthor": { "name": "greg.jost@gmail.com", "key": "greg.jost@gmail.com", "displayName": "Greg Jost", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-01T19:36:30.000+0000", "updated": "2012-02-01T19:36:30.000+0000" }, { "id": "196949", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's worth noting that the underlying native API is 'hidesBottomBarWhenPushed', and is meant to be set and forget. That is, there is no intent by Apple to hide and show the tab bar at will (The fact you can by swapping tabs is probably unintended behavior on Apple's part) and the fact no child windows will reveal the tab bar is expected behavior by Apple.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-03T23:52:16.000+0000", "updated": "2012-06-03T23:52:16.000+0000" }, { "id": "209449", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still valid on SDK 2.2.0.f9e938d.\r\n\r\nTest code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar btn = Ti.UI.createButton({\r\n\ttitle:'click',\r\n\twidth:150,\r\n\theight:50\r\n});\r\nbtn.addEventListener('click', function(e) {\r\n\twin.navBarHidden = true;\r\n win.tabBarHidden = true;\r\n});\r\nwin.add(btn);\r\n\r\nvar tg = Ti.UI.createTabGroup();\r\ntg.addTab(Ti.UI.createTab({\r\n\twindow:win\r\n}));\r\ntg.addTab(Ti.UI.createTab({\r\n\ttitle:'click here',\r\n\twindow:Ti.UI.createWindow()\r\n}));\r\ntg.open();\r\n{code}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-25T16:27:36.000+0000", "updated": "2012-07-25T16:27:36.000+0000" }, { "id": "214790", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on TiSDK 2.2.0v 20120816015712 using iOS simulator, issue still valid.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-16T10:26:19.000+0000", "updated": "2012-08-16T10:26:19.000+0000" }, { "id": "418619", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Cannot Reproduce, using the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.4 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.0\r\nTi CLI 5.0.12\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T17:47:52.000+0000", "updated": "2017-05-02T17:47:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }