- Button's positioning on UIToolBar in IB -
interface-builder, iphone, positioning, uibuttonbaritem, uitoolbar
Solution
If you want buttons to be anything other than left-aligned in a UIToolbar, you need to add flexible spacers to your toolbar.
Problem
As a fervent adept of IB, I created a UIToolBar (in IB of course) and added to it a few buttons. So far so good ... but then I tried to move each of them to the right position but IB doesn't let me do it ... Each time I try to scroll them IB moves them back to the former position ! Is there a way to choose their position in IB ? If not, could you give me a piece of code for me to choose their position programatically ? (sigh :D) Thanks, Gotye.