Is it possible to see the selected state content of an UIButton only when I’m touching it?
Share
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.
When you’re touching a button, the button is highlighted. Call
setTitle:forState:to give the button the normal title (UIControlStateNormal), and callsetTitle:forState:to give it the highlighted title (UIControlStateHighlighted). Now you’ll see one title normally and the other title when you touch the button. The same thing for the other button features, likesetImage:forState:.