我可以使用此代码片段(iOS 5+)更改UIBarButtonItem的文本颜色:
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];
[attributes setValue:[UIColor blackColor] forKey:UITextAttributeTextColor];
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState:UIControlStateNormal];
不幸的是,这不会影响UIBarButtonSystemItemAdd。
有没有办法改变UIBarButtonSystemItemAdd的文本颜色?