Hi i am trying to get another TintColor on my BackButton in my UINavigationBar. I would like to change only the tintcolor and not to replace the whole button. Are there any suggestions on implemententing this easily?
Asked
Active
Viewed 2,585 times
0
-
If you mean with surf, searched in the web, yeah i did. But there were only outdated entries… – mariusLAN Jan 30 '12 at 12:59
1 Answers
3
If you are using iOS5 there's a tintColor property available on UIBarButtonItem. Otherwise please check out one of the past answers such as UIBarButtonItem with color?
-
The main problem i got here is, that i can't access the backbarbutton. If i try to access the back button it's everytime (null). – mariusLAN Jan 30 '12 at 14:09
-
3You could try the following which using uiappearance to change all instances of uibarbuttonitem: [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:myNavBarColor]; – shawnwall Jan 30 '12 at 15:21