I'm working with tabBar
Based application with navigation controller. In my application I want to change the tabBarItem image
and title
. At the time of clicking the pariticular tabBarItem
the control goes to viewWillAppear
method of that particular view. In this time i want to change image
and title
of that particular tabBarItem
.
I'm giving like this but,it's not working...
Code:
tabItem = [[UITabBarItem alloc] initWithTitle:@"Colors" image:[UIImage imageNamed:@"Colors.png"] tag:9];
self.tabBarController.tabBarItem = tabItem;
Already I'm setting the tag value
for that view is 9
.
Please help me how can I change the image
and title
of that particular tabbarItem
.