Mark117 Mark117 - 1 year ago 105
iOS Question

Changing Nav Bar title programatically

I'm trying to change my nav bar's title programatically but the code i'm using won't work.

self.navigationController.navigationBar.tintColor = [UIColor redColor];

I can manage to change the colour of the bar but not the text, anyone have any ideas/ solution?

Answer Source
self.navigationController.navigationBar.topItem.title = @"YourTitle";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download