Is it possible to reposition a UIBarButtonItem
that's in a UINavigationBar
horizontally? I've seen the barButtonItem setBackgroundVerticalPositionAdjustment:forBarMetrics:
method (but that's for vertical positioning), and I know how to do it if I make it a custom button, but how do I take a UIBarButtonItem
with the style UIBarButtonItemStyleBordered
and horizontally reposition it (that is, move it left or right)?
Thanks in advance!
You can create a fixed size button as a 'filler' and add that to beside your existing button:
(Then set the width to your desired value)