in fact the title contains my question. I have a UISegmentedControl, and need to deselect currently selected tab. I tried:
[menu setSelectedSegmentIndex:-1]; >
swift 4
@IBOutlet weak var segmentControl: UISegmentedControl! { didSet { segmentControl.selectedSegmentIndex = UISegmentedControl.noSegment } }