Quick question about the UISegmentedControl class on iPhone.
Hopefully, some of them might have noticed how, in the default state with two segments, the segmented control will still switch, even if the user clicks on the selected segment.
I have seen UISegmentedControls in applications that deny this behavior and do not switch when the user clicks on the selected segment. Namely, the Apple iTune Store app.
Is there an easy way to prevent this behavior that I am missing or do I need to write some logic in valueChanged?
I am trying to disable segments currently selected and enable unselected ones, but this seems to change the appearance of the control when I don't want it.
Any ideas?
source share