in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried:
[menu setSelectedSegmentIndex:-1]; >
I guess you try to create a momentary selection in segmented control. In interface builder set the segmentedcontrol to momentary. Or in code you can do:
menu.momentary = YES;