0

I'm trying to change the back button image using a resizable image of just a 1x1 pixel (I just want to change the color of it basically and remove the tint). The code I'm using is the following:

UIImage *backButtonImage = [[UIImage imageNamed:@"backButton.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:backButtonImage forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];

But for some reason, the button seems like it is only allowing a 1 pixel line to be show: enter image description here

You can see a sliver of the text of the title of the previous view.

Is there any way to just change the color of the back button and remove the tint so it's a solid color without having to create a new barButtonItem and remove the one already there?

Community
  • 1
  • 1
user1529956
  • 735
  • 2
  • 10
  • 24

0 Answers0