设置导航栏title字体颜色
ZYYHomeViewController*homeVC = [[ZYYHomeViewControlleralloc]init];
UINavigationController *homeNaVC = [[UINavigationControlleralloc]initWithRootViewController:homeVC];
// homeNaVC.navigationBar.barTintColor = [UIColor redColor];
homeNaVC.tabBarItem= [[UITabBarItemalloc]initWithTitle:@"首页"image:[UIImageimageNamed:@""]tag:1000];
// 设置导航栏颜色
UINavigationController *homeNaVC = [[UINavigationControlleralloc]initWithRootViewController:homeVC];
// homeNaVC.navigationBar.barTintColor = [UIColor redColor];
homeNaVC.tabBarItem= [[UITabBarItemalloc]initWithTitle:@"首页"image:[UIImageimageNamed:@""]tag:1000];
// 设置导航栏颜色
homeNaVC.navigationBar.barTintColor= [UIColorcolorWithRed:231/255.0green:53/255.0blue:62/255.0alpha:0.3];
UIColor* color = [UIColorwhiteColor];
//这里我们设置的是颜色,还可以设置shadow等,具体可以参见api
NSDictionary* homeDic =[NSDictionarydictionaryWithObject:colorforKey:UITextAttributeTextColor];
//大功告成
homeNaVC.navigationBar.titleTextAttributes= homeDic;
//这里我们设置的是颜色,还可以设置shadow等,具体可以参见api
NSDictionary* homeDic =[NSDictionarydictionaryWithObject:colorforKey:UITextAttributeTextColor];
//大功告成
homeNaVC.navigationBar.titleTextAttributes= homeDic;