我能够更改使用此代码段(iOS 5以上)的的UIBarButtonItem文本颜色:的iOS 5:文本颜色UIBarButtonSystemItemAdd
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];
[attributes setValue:[UIColor blackColor] forKey:UITextAttributeTextColor];
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState:UIControlStateNormal];
不幸的是,这并不影响UIBarButtonSystemItemAdd。
有没有办法改变的文本颜色UIBarButtonSystemItemAdd?
不是真的 - 系统栏按钮项目是由图像组成 - 按钮中的“+”是PNG而不是字符串。 – 2012-07-15 11:23:03
好的,我明白了。感谢您的回答。我想我会通过使用带有加号的自定义栏按钮项作为字符串来解决此问题。也许你想添加你的评论作为这个问题的答案,所以我可以标记问题解决? – Patrick 2012-07-15 11:49:43