I have a Bar Button Item and I wanna set a background image for it.
Both the button and the background image are set in the xib file.
As you can see the image doesn’t covers the whole width of the button.
Now, I tried setting up as background a larger image and here is how the result looks like:
The button gets larger itself and still the image doesn’t fits its size.
Anyone any idea of how to make this work?


Try this, it works very well in these cases:
Of course, you can write this in one line or two lines, I just wanted to show it clearly…