I have a navigation bar with a title. When I double click the text to rename it, it actually says it\'s a navigation item, so it might be that.
I\'m trying to change
Swift 3
I created an outlet for the navigation title bar item that comes with the navigation bar (from the Object Browser) in the storyboard. Then I sued the line below:
navigationBarTitleItem.title = "Hello Bar"
Swift 5.1
// Set NavigationBar Title Programmatically and Dynamic
Note :
First add NavigationControllerItem to Your ViewController
then goto their ViewController.swift
file and Just Copy and Paste this in viewDidLoad()
.
navigationItem.title = "Your Title Here"