views:

537

answers:

1

I am putting a label on a UIToolbar (per this tip: http://stackoverflow.com/questions/333441/adding-a-uilabel-to-a-uitoolbar).

But the toolbar has a button on the left side, and so flexible spaces throw the label off the center, which is where I'd like it to be. Can I somehow center this toolbar item so that it remains centered in the toolbar?

(Already tried balancing the button with a dummy fixed space, no dice.)

Thanks!

+2  A: 

Simplest way would be to put the label above the bar, in it's parent view, and justify it there.

Ben Gottlieb
Thanks other-Ben, that was my plan B. :)
quixoto