0

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?

Lucifer
  • 28,933
  • 23
  • 88
  • 140
mariusLAN
  • 1,175
  • 1
  • 12
  • 26

1 Answers1

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?

Community
  • 1
  • 1
shawnwall
  • 4,369
  • 1
  • 25
  • 35
  • 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
  • 3
    You 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