When detecting changes, it works with UIControlEventValueChanged
- I need to detect touches even on selected segments.
I tried
[onOffSC addTarget:self action:@selector(segmentedControlPushed) forControlEvents:UIControlEventAllTouchEvents];
But it doesnβt work.
Is there a way to detect touches on a selected segment?
EDIT - without creating a new subclass. ps also the gesture recognizer does not take control of the segment when trying to drag it there
Many thanks
source share