Resolved Issue #1127: Changing ActionBar title after page is loaded does not show the ActionBar

This commit is contained in:
Rossen Hristov
2015-12-14 15:57:40 +02:00
parent 594e4df6c4
commit b47a648e6c
2 changed files with 7 additions and 3 deletions

View File

@ -169,6 +169,10 @@ export class ActionBar extends common.ActionBar {
return; return;
} }
if (this.page.frame) {
this.page.frame._updateActionBar();
}
var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem; var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem;
navigationItem.title = this.title; navigationItem.title = this.title;
} }

View File

@ -420,9 +420,9 @@ class iOSFrame implements definition.iOSFrame {
this._showNavigationBar = value; this._showNavigationBar = value;
this._controller.navigationBarHidden = !value; this._controller.navigationBarHidden = !value;
let owner = this._controller.owner; let currentPage = this._controller.owner.currentPage;
if (owner && change) { if (currentPage && change) {
owner.requestLayout(); currentPage.requestLayout();
} }
} }