Custom UIToolBar from Images
Posted
by Sophtware
on Stack Overflow
See other posts from Stack Overflow
or by Sophtware
Published on 2010-05-05T00:06:01Z
Indexed on
2010/06/02
12:53 UTC
Read the original article
Hit count: 1194
I need to create a UIToolbar object that uses an image for the background. Most of the buttons are images as well, and rectangular. One button, however, is round and overlaps the toolbar like the Start button on the Windows task bar. See below.
I know that I will need to subclass the UIToolbar to paint the image for the toolbar -- I think. If so, does anyone have example code showing how to do this?
Furthermore, does anyone have any ideas on how to implement the larger round button? I'm thinking of another custom subclass for this, but not sure if there might be an easier way.
I can have the art guys chop the image anyway needed, which I'm sure the round button will need to be chopped some how.
Any ideas or sample code?
© Stack Overflow or respective owner