如题。原始图标模拟器图标:
代码:
    UITabBarController *tb = [[UITabBarController alloc] init];
    self.window.rootViewController = tb;
    UIViewController *c1 = [[UIViewController alloc] init];
    c1.view.backgroundColor=[UIColor grayColor];
    c1.view.backgroundColor=[UIColor greenColor];
    c1.tabBarItem.title=@"微信";
    c1.tabBarItem.image=[UIImage imageNamed:@"tab_message"];
    c1.tabBarItem.badgeValue=@"2";    c2,c3,c4同上    tb.viewControllers=@[c1,c2,c3,c4];
    
    // 设置window为主窗口并显示出来
    [self.window makeKeyAndVisible];