tags:

views:

53

answers:

1

how can i do that? i want my UIButton remain selected until have make certain condition

+1  A: 

You can use the button's setState method, like so:

[myButton setState:UIControlStateHighlighted];

Then just set the state back to normal when you're done.

Dave DeLong
setState function is not exist,how u do that?
My mistake. Use setSelected: or setHighlighted: instead.
Dave DeLong