Is it possible to change the styling of iPhone native buttons? For example, I’d like to use a smaller font size for part of the button text, and larger for another – something like
<small>pick a</small><big>color</big>
I’d also like to use buttons that form a right-arrow shape instead of being rectangular. Something like:
--------------------------------- \ Color \ Size \ Shape \ / / / / ----------------------------------
Any of that possible?
I don’t think you can do it easily. You’ll probably have to subclass
UISegmentedControland override a bunch of methods. To get differently sized fonts on the button text, you’ll have to create severalUILabels as subviews and give each one the appropriate text and font size, and then lay them out. To get the right-arrow shape, you’ll need to override thedrawRect:method to draw the control’s background.