Simple Title not showing up in UINavigationController
When working with a Storyboard, setting the title
of the UIViewController
or UITableViewController
does not seem to add that title to the Navigation Controller, as other answers suggest.
Instead, find the UINavigationItem
that is likely alongside your View Controller object in the Storyboard hierarchy. Set this Navigation Item's title
to apply that title to the Navigation Controller.
UINavigationController automatically shows the title of the UIViewController subclass it is displaying. It does so by looking at the navigationItem.title property of that UIViewController or UIViewController subclass. Basically UINavigationController doesn't have a title.