iPhone SDK: How do I programatically change the background image of a UIButton added to a NIB?

Posted by user304583 on Stack Overflow See other posts from Stack Overflow or by user304583
Published on 2010-03-29T20:49:18Z Indexed on 2010/03/29 20:53 UTC
Read the original article Hit count: 174

Filed under:
|
|

I've seen several questions/answers related to entirely creating a button in code, but not one which would let me know how to change the button image in code, when I originally added the button to my NIB in Interface Builder. I know how to change the background in Interface Builder.. but I want to change it in code, so I can change it automagically. Any help really appreciated!

Perhaps the answer is so obvious nobody needs to ask.. if so please forgive the dweeb that I am and help! :-)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk