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
2009-07-02 05:18:21
setState function is not exist,how u do that?
2009-07-02 05:32:05
My mistake. Use setSelected: or setHighlighted: instead.
Dave DeLong
2009-07-02 19:31:10