Search code examples
iosiphoneviewuinavigationbar

How to set the title of a Navigation Bar programmatically?


I have a Navigation Bar in a view, and I want to change its Navigation Item title programmatically.

How is this done?


Solution

  • In your UIViewController

    self.navigationItem.title = @"The title";