How to change the width of a UIBarButtonItem to 29px? The width of the property does not work, and I do not want to create a UIButton and use initWithCustomView , because I want the square background to adjust to the color of the navigation bar. I am using initWithImage to initialize a UIBarButtonItem .
Here is my button with a current width of 37 pixels. I want to install 29px.

ios objective-c width uibarbuttonitem
gnclmorais
source share