//为tabBar设置系统自带的标志,在UITabBarSystemItem中选择,并设置标签
self.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:111];
//为tabBar设置自定义的名称与图片,图片可以为空
self.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"Second" image:nil tag:112];
//设置小角标,一般为显示信息数量
self.tabBarItem.badgeValue = @"1";
self.tabBarItem = [[UITabBarItem alloc]initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:111];
//为tabBar设置自定义的名称与图片,图片可以为空
self.tabBarItem = [[UITabBarItem alloc]initWithTitle:@"Second" image:nil tag:112];
//设置小角标,一般为显示信息数量
self.tabBarItem.badgeValue = @"1";