@jmstone answer, true, this action will not raise the valueChanged event for this control.
One way to overcome this is to simply call the function yourself:
segmentedControl.selectedSegmentIndex = 3; [self valueChangedMethod:segmentedControl];
This will cause:
- (void)valueChangedMethod:(UISegmentedControl *)segmentedControl {
Lirik Nov 28 2018-12-12T00: 00Z
source share