UISegmentedControl register taps on selected segment

Posted by Jongsma on Stack Overflow See other posts from Stack Overflow or by Jongsma
Published on 2009-10-25T13:51:18Z Indexed on 2010/04/02 23:23 UTC
Read the original article Hit count: 418

Filed under:
|

Hi,

I have a segmented control where the user can select how to order a list. Works fine.

However, I would like that when an already selected segment is tapped, the order gets inverted. I have all the code in place, but I don't know how to register the taps on those segments. It seems the only control event you can use is UIControlEventValueChanged, but that isn't working (since the selected segment isn't actually changing).

Is there a solution for this? And if so, what is it?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uisegmentedcontrol