iphone - Horizontally repositioning a UIBarButtonItem -


is possible reposition uibarbuttonitem that's in uinavigationbar horizontally? i've seen barbuttonitem setbackgroundverticalpositionadjustment:forbarmetrics: method (but that's vertical positioning), , know how if make custom button, how take uibarbuttonitem style uibarbuttonitemstylebordered , horizontally reposition (that is, move left or right)?

thanks in advance!

you can create fixed size button 'filler' , add beside existing button:

uibarbuttonitem *fixedspace = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemfixedspace target:nil action:nil]; 

(then set width desired value)


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -