Is there a way to send events from UIButton to UIScrollView?

I want to forward an event from a button that is in scrollview to scroll when the button was clicked and dragged inward.

Using the "addTarget: action: forControlEvent" button, I can get the button pressed and drag the event, as well as move the scrollview while dragging.

But the problem is that the scroll view does not react like a scroll scroll scroll. This means that there is no animation acceleration when I finish the drag and drop.

I am looking for a way to forward events to scroll through the View so that scrollview can respond when it is being dragged by itself, even though the event is from a scroll button.

Is there anyone who knows this?

+4
source share

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


All Articles