IOS使用UITabBarController比较多,UITabBarController默认的tabBarItem为灰色和蓝色,是系统默认的,修改如下:
UITabBarController *tabBar = [[UITabBarController alloc] init];
tabBar.tabBar.tintColor = [UIColor colorWithRed:(0xc9)/255.0f green:(0x29)/255.0f blue:(0x21)/255.0f alpha:1];
原创博客,转载请标明出处:http://www.geekapp.cn/archives/444.html