I am having trouble detecting the intersection of my UIView objects.
What I used below:
To intersect two objects, I need to figure out how to translate one coordinate system from the first supervisor to another coordinate system.
I used this approach: - (CGRect)convertRect:(CGRect)rect fromView:(UIView *)view , the link described here.
As I know, it is very simple to use this method. But in different cases, this is difficult due to a small description of the documentation (but, perhaps, only for me).
This is my subheading structure, which is shown in the image below. I already have all the methods for the drag object. But I need to figure out how to get the intersection for UIView A and UIView B. Thanks for the help.

ios uiview
Matrosov Alexander
source share