Doug Null Doug Null - 1 year ago 83
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";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download