2010-05-25 136 views

回答

3

它是TabBarItem的badgeValue屬性。

UITabBarItem *itemToBadge = [[[myTabBarController tabBar] items] objectAtIndex:indexOfTabToBadge]; 
itemToBadge.badgeValue = aString;