Skip to content

Commit b47a648

Browse files
committed
Resolved Issue NativeScript#1127: Changing ActionBar title after page is loaded does not show the ActionBar
1 parent 594e4df commit b47a648

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ui/action-bar/action-bar.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ export class ActionBar extends common.ActionBar {
169169
return;
170170
}
171171

172+
if (this.page.frame) {
173+
this.page.frame._updateActionBar();
174+
}
175+
172176
var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem;
173177
navigationItem.title = this.title;
174178
}

ui/frame/frame.ios.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ class iOSFrame implements definition.iOSFrame {
420420
this._showNavigationBar = value;
421421
this._controller.navigationBarHidden = !value;
422422

423-
let owner = this._controller.owner;
424-
if (owner && change) {
425-
owner.requestLayout();
423+
let currentPage = this._controller.owner.currentPage;
424+
if (currentPage && change) {
425+
currentPage.requestLayout();
426426
}
427427
}
428428

0 commit comments

Comments
 (0)