Doug Null Doug Null - 8 months ago 39
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

In your UIViewController

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