Doug Null Doug Null - 1 year ago 67
iOS Question

How to set the title of a Navigation Bar programatically?

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

How is this done?

Answer Source

In your UIViewController

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