[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]]; //@{}代表Dictionary
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
转载于:https://my.oschina.net/u/554046/blog/529929