views:

238

answers:

2

I have designed a view with a toolbar that appears modally in Interface Builder. I have a UIBarButtonItem that is on the left hand side, which I would like to appear on the right hand side of the toolbar. How can I do this in IB, or via code?

+5  A: 

Insert an item which has identifier being "flexible space".

KennyTM
This sounds like a better solution than mine!
bpapa
Works like a charm! Great solution.
Sheehan Alam
A: 

If you can get away with this not being a UIBarButtonItem (for example, an info button), what I do is change the layer of the button to always be in front of the Toolbar. This way, when I drag the button over the toolbar in IB it doesn't automatically suck it in and over to the left side.

bpapa