mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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;
|
||||
}
|
||||
|
||||
if (this.page.frame) {
|
||||
this.page.frame._updateActionBar();
|
||||
}
|
||||
|
||||
var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem;
|
||||
navigationItem.title = this.title;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user