[TIMOB-24107] iOS: Setting "navBarHidden" before opening Ti.UI.iOS.NavigationWindow has no effect (regression)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-11-06T14:57:39.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.0.0 |
Components | iOS |
Labels | qe-6.0.0 |
Reporter | Mathias Eklöf |
Assignee | Hans Knöchel |
Created | 2016-11-03T09:37:40.000+0000 |
Updated | 2016-11-09T15:49:08.000+0000 |
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;
(I guess these issues are together)
var windowObj = Ti.UI.createWindow({
translucent: false,
navBarHidden: true
});
var nav = Ti.UI.iOS.createNavigationWindow({
window: windowObj
});
nav.open();
Hey Mathias, So far the
navBarHidden
property, it needs to be called when the window is already added to a navigation window, e.g.:but 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: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 internalTiWindow
proxy and exposed the default values to have clean getters. PR (master): https://github.com/appcelerator/titanium_mobile/pull/8585 PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8586 Test-Case:You can test the default values by removing the properties form the window and see the result. They should all default to
false
.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. Tested On: iPhone 7 10.1.1 Device & Simulator iPhone 5S 9.3.5 Device Mac OS Sierra (10.12.1) Ti SDK: 6.0.0.v20161107075927 Appc Studio: 4.8.0.201611020954 Appc NPM: 4.2.8-9 App CLI: 6.0.0-68 Xcode 8.1 Node v4.4.7 *Closing ticket.*