I've tried this way in a TableViewController inside a TabBarController :
Then the tab bar item badge didn't change when i run the code.
When i use this code:
Then it works, why?
You have to change its badge value by accessing the tarBar items array?
Code:
self.tabBarItem.badgeValue = @"AB";
Then the tab bar item badge didn't change when i run the code.
When i use this code:
Code:
[[[[self tabBarController] tabBar] items] objectAtIndex:0] setBadgeValue:@"AB"];
Then it works, why?
You have to change its badge value by accessing the tarBar items array?
Last edited by a moderator: