How can I load a jpg image into the UIButton.
I want one image for when it is Not pressed.
And another image for when it is pressed.
thanks
(looking to do this programmatically… no interface builder)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can see in interface builder there are properties and you can see that there are options for backgroundImage and Image for each state(normal,highlighted,selected,disabled) go to interface builder properties of UIButton you will find there. For images to appear in the combo box you need to add images to your project.
UPDATE
Code Snippet