[[UIApplicationsharedApplication]setStatusBarStyle:UIStatusBarStyleLightContentanimated:NO];或在对应的viewcontroller中:
-(UIStatusBarStyle)preferredStatusBarStyle
{
returnUIStatusBarStyleLightContent;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
[[UINavigationBarappearance] setBarTintColor:[UIColorblueColor]];//导航栏颜色
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; //导航栏返回按钮(除标题)等其他地方的颜色
[[UINavigationBarappearance]setTitleTextAttributes:@{NSFontAttributeName:[UIFontsystemFontOfSize:20],NSForegroundColorAttributeName:[UIColorredColor]}];//导航栏标题颜色&字体,在对应的viewcontroller中用self.title = @"测试";
//
[[UITabBarappearance] setTintColor:[UIColorredColor]];//tabbar选中文字颜色
[[UITabBarappearance]setBarTintColor:[UIColorblueColor]];//整个tabbar的颜色
[[UIApplicationsharedApplication] setStatusBarStyle:UIStatusBarStyleLightContentanimated:NO];//状态栏样式
return YES;
}