Opening an old question, but I found it very useful.
iOS 5 allows the use of [UINavigationBar appearance] , which is great for changing the title of the title bar without the need for a custom UIView:
[[UINavigationBar appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor redColor], UITextAttributeTextColor, [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.8], UITextAttributeTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0, -1)], UITextAttributeTextShadowOffset, [UIFont fontWithName:@"HelveticaNeue" size:25.0f], UITextAttributeFont, nil]];
Sometimes, depending on the UIFont used, the header view may be disabled vertically.
To fix this, you can use:
[self.navigationBar setTitleVerticalPositionAdjustment:(float) forBarMetrics:UIBarMetricsDefault];
(float) is a positive value to push the title title down and a negative value to increase the title.
Hope this helps.
Moe
source share