I just wanted to know how can I set the title of a tab bar item using UITabBarSystemItem ?
What I've done:
self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:0];
So, to change the default title instead of โFeaturedโ (due to the UITabBarSystemItemFeatured object), I wrote:
self.tabBarItem.title = @"Actu";
So, in my opinion, I should have "Actu" as the name instead of "Featured".
But it does not change anything, the title remains "Featured" (default name).
I also tried:
[[self.tabBarController.tabBar.items objectAtIndex:0] setTitle:NSLocalizedString(@"Actu", @"Actu")];
(because this tabbaritem has an index of 0), but nothing changes.
Or perhaps such a modification is not possible when using UITabBarSystemItem objects?
Hope this will be explained quite well: /
PS: Sorry for my English and something else is wrong, 1st post ever ...: /
Lucien
source share