Many iPhone projects would require setting some numeric value on tabBarItem called badge. We can set the badge value for a tabBarItem by:-

Fig: UITabBarItem With Badges

Fig: UITabBarItem With Badges

//__tabBarController  is a outlet to our UITabBarController
__tabBarController.selectedViewController.tabBarItem.badgeValue = @”1″;
The badge value expects an string and it should be an integer. The maximum width of the badge is around 58 pixels in which approximately 7 to 9 digits fit in depending on the digits being displayed.
Too Many Digits In Badge

Too Many Digits In Badge

About Me: Anish Kumar:
Mac OS X software development is my bread winner with over 6 years of experience. Expertise in Color Management, TWAIN Scanner drivers on Mac OS X, Photoshop Filter and Import Plugin development on Mac OS X, iPhone. As an hobby I love to work on PHP, Flex, AIR, Photoshop. Check the 'About' page for more.