One I decide to make custom navigation bar design the right way. My navigation bar's title should be typed with custom font "Din Condensed" with size 23. So I wrote this code:
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navigation_background.png"]
forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setTitleTextAttributes:@{
UITextAttributeTextColor: [UIColor whiteColor],
UITextAttributeFont: [UIFont fontWithName:@"PFDinTextCondPro-Bold" size:23]
}];
But looks like title label can't fit text with this font:
How can I change size of UINavigationBar title using appearance API? I want to avoid using custom titleView.