From b47a648e6cfbb10fe677a5248bbfe3478569d9ab Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Mon, 14 Dec 2015 15:57:40 +0200 Subject: [PATCH] Resolved Issue #1127: Changing ActionBar title after page is loaded does not show the ActionBar --- ui/action-bar/action-bar.ios.ts | 4 ++++ ui/frame/frame.ios.ts | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/action-bar/action-bar.ios.ts b/ui/action-bar/action-bar.ios.ts index bb93edf86..b04613735 100644 --- a/ui/action-bar/action-bar.ios.ts +++ b/ui/action-bar/action-bar.ios.ts @@ -169,6 +169,10 @@ export class ActionBar extends common.ActionBar { return; } + if (this.page.frame) { + this.page.frame._updateActionBar(); + } + var navigationItem: UINavigationItem = (this.page.ios).navigationItem; navigationItem.title = this.title; } diff --git a/ui/frame/frame.ios.ts b/ui/frame/frame.ios.ts index 899e68ff9..4162d67be 100644 --- a/ui/frame/frame.ios.ts +++ b/ui/frame/frame.ios.ts @@ -420,9 +420,9 @@ class iOSFrame implements definition.iOSFrame { this._showNavigationBar = value; this._controller.navigationBarHidden = !value; - let owner = this._controller.owner; - if (owner && change) { - owner.requestLayout(); + let currentPage = this._controller.owner.currentPage; + if (currentPage && change) { + currentPage.requestLayout(); } }