(006)UITabBarItem badgeValue属性
-(id)init { if(self = [super init]) { self.title = @"first"; //self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"first" image:nil tag:0]; //self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemBookmarks tag:0]; UITabBarItem *tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemMostViewed tag:0]; tabBarItem.badgeValue = @"苹果"; self.tabBarItem = tabBarItem; } return self; }
***万事万物都有裂痕,那是光照进来的地方***

浙公网安备 33010602011771号