Access UIButton's titleLabel with custom background image

Posted by Meltemi on Stack Overflow See other posts from Stack Overflow or by Meltemi
Published on 2010-04-14T19:09:59Z Indexed on 2010/04/14 19:13 UTC
Read the original article Hit count: 780

Quick one: I have a custom button image that I want to use but I still want to change the text of the button with setTitle:forState:. When I use a "custom" button in IB I lose the Title view. When I use Rounded Rect in IB the custom image appears scrunched w/in the Rounded Rect button. Why is this so difficult?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk