in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried:
[menu setSelectedSegmentIndex:-1]; >
You can now do this in xcode 6 in the interface builder:
Deselect the 'Selected' option under segmented control behaviour in attributes inspector.