I am using the following code to set the badgevalue in current tab bar but its not visible in tab bar
self.navigationController.tabBarItem.badgeValue = @"1"
what is the correct way of putting the badge value in the tab bar.
This is how I access the badgeValue on a tabBarItem:
UITabBarItem * tabBarItem = (UITabBarItem *)[aTabBarController.tabBar.items objectAtIndex:1];
tabBarItem.badgeValue = @"1";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With