分类
IOS开发

IOS修改UITabBarController选项图片文本颜色

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];

分类
IOS开发

IOS修改状态栏字体颜色为白色

步骤如下:
1、修改info.plist选项View controller-based status bar appearance为NO
2、在app delegate中:[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;