Can I center a UIToolbar item?
Posted
by Ben
on Stack Overflow
See other posts from Stack Overflow
or by Ben
Published on 2010-03-24T20:26:40Z
Indexed on
2010/03/24
20:33 UTC
Read the original article
Hit count: 854
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!
© Stack Overflow or respective owner