Subclassing UIButton.

Posted by Joshua on Stack Overflow See other posts from Stack Overflow or by Joshua
Published on 2010-04-24T06:12:45Z Indexed on 2010/04/24 6:23 UTC
Read the original article Hit count: 345

Filed under:
|
|

I would like to subclass UIButton so I can give it a fill image, left side image and right side image which I can't do in IB.

All I can do in IB is give it a full background image which would mean the background would get stretched if the text was larger than the image. How would I do this? as unlike NSButton, there is no UIButtonCell class.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about uikit