I was wondering what is the best approach to make the UINavigationBar title auto shrink into minimum font size when it is too long?
Below are my example of the problem
Normal
Too Long (need to shrink the label)
And here is the codes I am using to do styling for UINavigationBar
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageWithColor:[UIColor greenColor]]
forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],
NSFontAttributeName : [fontWithName:@"Helvetica-Bold" size:18.0]}];
[[UINavigationBar appearance] setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleRightMargin];