ios - How to set title with UITabbarsystemitem -
i wanted know how can set title of tab bar item using uitabbarsystemitem
?
what did :
self.tabbaritem = [[uitabbaritem alloc] initwithtabbarsystemitem:uitabbarsystemitemfeatured tag:0];
so change title default instead of "featured" (because of uitabbarsystemitemfeatured
object), wrote :
self.tabbaritem.title = @"actu";
so in mind should have "actu" title instead of "featured".
but changes nothing, title keeps being "featured" (default title).
i tried :
[[self.tabbarcontroller.tabbar.items objectatindex:0] settitle:nslocalizedstring(@"actu", @"actu")];
(because tabbaritem @ index 0), nothing changes.
or maybe such modification not possible using uitabbarsystemitem
objects ?
i hope enough explained :/
ps : sorry english , else wrong, 1st post ever… :/
when uitabbaritem
initalized using initwithtabbarsystemitem:tag:
cannot change image or title properties later on.
source: ios development documentation