UITabBarItem *tbi = (UITabBarItem *)[tabBarController.tabBar.items objectAtIndex:2];
or
UITabBarItem *tbi = (UITabBarItem *)[AppDel.tabBarController.tabBar.items objectAtIndex:2];
tbi.badgeValue = @"2"; // 2 define the value that would be display on tabbar item.
No comments:
Post a Comment