¡@

Home 

2014/10/15 ¤U¤È 10:10:05

iphone Programming Glossary: highlightbutton

Keep iPhone UIButton Highlighted

http://stackoverflow.com/questions/2290534/keep-iphone-uibutton-highlighted

as I expected. But after pressing the button once the button is no longer highlighted. Then I created an IBAction highlightButton to handle Touch Up Inside event where I explicitly call myButton.highlighted Yes . Unfortunately the button highlight still.. uibutton share improve this question The solution is to do button setHighlighted YES in the next runloop void highlightButton UIButton b b setHighlighted YES IBAction onTouchup UIButton sender self performSelector @selector highlightButton withObject..