Drag and Drop Images Over the Cross Borders of Views

I have a UIImageView at the top of my main view.

Below I have a horizontal UIScrollView with numerous UIImageViews contained in it.

I am trying to drag any of the UIImageViews from the UIScrollView onto the main UIImageView at the top of the screen.

However, even if I found that the UIImageView is being dragged into BringViewToFront, does it do two unexpected things?

  • Can I only drag the UIImageView vertically as soon as I tilt left or right of the UIScrollView creatures to scroll?

  • When I drag a UIImageView to a place on the main UIImageView, it slides underneath, although I called BringViewToFront?

Any ideas?

thank

+3

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


All Articles