How can I change the width of an UIBarButtonItem
to 29px? The property width does not work and I don't want to create a UIButton
and use the initWithCustomView
because I want the square background to adjust to the navigation bar color.
I'm using the initWithImage
to init the UIBarButtonItem
.
Here is my button with a current width of 37px. I want to set to 29px.