How do you adjust the frame or vertical alignment of a UIBarButtonItem contained by a UIToolbar inst

Posted by akaii on Stack Overflow See other posts from Stack Overflow or by akaii
Published on 2010-05-07T03:29:35Z Indexed on 2010/05/07 3:38 UTC
Read the original article Hit count: 562

Horizontal positioning of UIBarButtonItems is no problem, I can simply pad the space with fixed/flexible space items. However, I can't seem to adjust the toolbar item vertically. UIToolbar has no alignment property, and UIBarButtonItem has no way of setting its frame.

I need to do this because we're using a mix of custom icons created using initWithImage, and standard icons created with initWithBarButtonSystemItem. The custom icons aren't being centered properly (they're offset upwards, relative to the system icons, which are centered properly), so the toolbar looks awkward.

© Stack Overflow or respective owner

Related posts about uibarbuttonitem

Related posts about iphone