私は、アプリケーション内に明るい色の背景を持つUIBarButtonItemsを持っています。標準の白ではなく、暗い色のアイコンに色を付けたいと思っていました。このようiOS 6、UIBarButtonItemの白いアイコンを色づける方法は?
:
私は
[[UIBarButtonItem appearance] setTitleTextAttributes:@{UITextAttributeTextColor: [UIColor blackColor]} forState:UIControlStateNormal];,
を使用してテキストを色付けすることができましたが、私は、アイコンの色を変更する方法を見つけ出すことはできません。
これは可能ですか?
[色付きの画像でUIBarButtonItemを作成することはできますか?](http://stackoverflow.com/questions/1835260/can-i-have-a-uibarbuttonitem-with-colored-image) –
+1。このことに気付かなかった。 – Bhavin