1

In my navigation bar title, the text always appears to be bold and I need to have a thin text. I don't want to use a label with attributed text. So is it possible to change the navigation bar title text from bold to thin?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Oliver Schobel
  • 377
  • 4
  • 20
  • 2
    possible duplicate of [How to set font & color of the title in UINavigationBar using iOS5 appearance API?](http://stackoverflow.com/questions/10430298/how-to-set-font-color-of-the-title-in-uinavigationbar-using-ios5-appearance-ap) – Larme Aug 19 '14 at 14:55

1 Answers1

2

You can use UIAppearance

 NSDictionary *titleAttributes = @{
    NSFontAttributeName: [UIFont fontWithName:MY_FONT_HERE]
    };
 [[UINavigationBar appearance] setTitleTextAttributes:titleAttributes];
Kunal Balani
  • 4,739
  • 4
  • 36
  • 73