UIControlEventTouchDragEnter doesn't seem to work to grab a crane that slides into a control

I wanted to allow a method call to be called if the finger was dragged externally to the bounds of the control. I thought UIControlEventTouchDragEnter would do this, but that doesn't seem to be the case. Does anyone know if there is a way to trigger an action based on a touch sliding into a control?

This is what I tried, but did not receive a call to my -fingerSlidIn:

[aButton addTarget: self action: @selector (fingerSlidIn: withEvent :) forControlEvents: UIControlEventTouchDragEnter];

Thank!

+3
source share
1 answer

. , ( ), , . , UIControlEventTouchDragEnter, .

, , , (, pointInside:withEvent: , ).

+4

Source: https://habr.com/ru/post/1739743/


All Articles