This is the hierarchy:
-- ViewController.View P [width: 375, height: 667] ---- UIImageView A [width: 375, height: 667] [A is holding an image of size(1287,1662)] ---- UIImageView B [width: 100, height: 100] [B is holding an image of size(2400,982)]
Note: B is not subparagraph A. In Appendix B, it is dragged. And I'm trying to combine the two A and B, where the positions A [background] and B [foreground] are located.
I want to find the exact position B, so that after the merger she was in the same position in which I was dragged and dropped.
- I wrote all the drag and drop code.
- I could not find the correct position B for merging with A.
Here are the screenshots of the problem:
Starting position display B.

This is the new position B after drag and drop.

Wrong position B after merger.

Any help would be appreciated.
Thanks in advance.
Attention !: Attached images Sample later and the signature in the screenshots was based on a Google search. I used it for demonstration purposes only.
source share