方法1:
//设置navigation bar字体颜色
NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,[UIFont boldSystemFontOfSize:20],UITextAttributeFont, nil];
_homeNavC.navigationBar.titleTextAttributes = attributes;
方法2:
//导航栏标题颜色
NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],UITextAttributeTextColor,[UIFont boldSystemFontOfSize:20],UITextAttributeFont, nil];
[[UINavigationBar appearance] setTitleTextAttributes:attributes];