如何在iOS 7中更改UINavigationBar文本颜色?我想让它变成白色而不是黑色。
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], UITextAttributeTextColor, nil];
[[UINavigationBar appearance] setTitleTextAttributes:attributes];
@{UITextAttributeTextColor: [UIColor whiteColor]}
- Brian Nickel
UINavigationBar textTitleAttributes
。 - rmaddy