Merge pull request #3953 from NativeScript/ios-nav-title

Ensure navigation title view is removed if undefined
This commit is contained in:
Alexander Vakrilov
2017-04-07 14:43:48 +03:00
committed by GitHub

View File

@ -93,6 +93,8 @@ export class ActionBar extends ActionBarBase {
if (this.titleView && this.titleView.ios) { if (this.titleView && this.titleView.ios) {
navigationItem.titleView = this.titleView.ios; navigationItem.titleView = this.titleView.ios;
} else {
navigationItem.titleView = null;
} }
// Find previous ViewController in the navigation stack // Find previous ViewController in the navigation stack