From 00589c801dbf6e904532974942b1f47f4988a64c Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 27 Jan 2017 15:00:16 +0200 Subject: [PATCH] FIX: disappearing navigation bar on back --- tns-core-modules/ui/page/page.ios.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tns-core-modules/ui/page/page.ios.ts b/tns-core-modules/ui/page/page.ios.ts index dab83eb9b..d5d326ed7 100644 --- a/tns-core-modules/ui/page/page.ios.ts +++ b/tns-core-modules/ui/page/page.ios.ts @@ -573,7 +573,7 @@ export class Page extends PageBase { } public _addViewToNativeVisualTree(view: View): boolean { - // ActionBar is added to the native visual tree by default + // ActionBar is handled by the UINavigationController if (view === this.actionBar) { return true; } @@ -581,6 +581,15 @@ export class Page extends PageBase { return super._addViewToNativeVisualTree(view); } + public _removeViewFromNativeVisualTree(view: View): void { + // ActionBar is handled by the UINavigationController + if (view === this.actionBar) { + return; + } + + super._removeViewFromNativeVisualTree(view); + } + get [actionBarHiddenProperty.native](): boolean { return undefined; }