How to Set Title of UITabBarItem Differently to UINavigationController title

A handy code snippet for doing as the title of the post says. Place this in the View Controller:

- (void)awakeFromNib
{
self.navigationItem.title = @"My Long Navigation Item Title";
self.tabBarItem.title = @"Short Title";
[super awakeFromNib];
}

Leave a Reply