mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Resolved Issue #1127: Changing ActionBar title after page is loaded does not show the ActionBar
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user