这里我使用 4 个 tabViews,第三个是聊天按钮,所以这里用户未读消息如何显示徽章
在#import "HomeTabViewController.h"
- (void)viewDidLoad {
[super viewDidLoad];
NSString *badgeVal = @"5";
[[[[self.tabBarController viewControllers] objectAtIndex:2] tabBarItem] setBadgeValue:badgeVal];
}