Skip navigation

xcode button click click

228 Views 1 Reply Latest reply: Jul 15, 2013 1:52 PM by xnav RSS
ob9618 Level 1 Level 1 (0 points)
Currently Being Moderated
Jul 14, 2013 11:47 PM

Hi, All

 

I know how to change button style by button type

choose custom I can change image and use following statment when click the button will show another image means selected

 

UIImage *btnImage1 = [UIImage imageNamed:@"selected.png"];

    [sender setImage:btnImage1 forState:UIControlStateNormal];

 

 

but how can I change it back to unselected when I reclick the button or when I click another one?

螢幕快照 2013-07-15 下午2.34.26.png    螢幕快照 2013-07-15 下午2.34.42.png

iOS 6.1

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.