设置标题颜色
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]];
//导航条颜色
[[UINavigationBar appearance] setBarTintColor:kTopBarBgColor];
设置标题颜色
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]];
//导航条颜色
[[UINavigationBar appearance] setBarTintColor:kTopBarBgColor];