How can I override or add a gesture to the switch? You need to add PanGesture to UISwitch.
- Please clarify what you want to do with this gesture? - Vitaly
- There is a switch to self.view. It is necessary that using the pan gesture it moves over self.view. That is, moving after finger. Why it is needed - especially do not take it. Now when you try to add any gesture to it, nothing happens. In addition to the standard tap gesture, that is, either on or off state switch. - D. Ivan
|
1 answer
The problem you are facing is that the UISwitch handler intercepts the gesture and ignores yours. To read more about this HitTest link .
- Thank you, I will read. - D. Ivan
|