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;
}
if (this.page.frame) {
this.page.frame._updateActionBar();
}
var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem;
navigationItem.title = this.title;
}

View File

@ -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();
}
}