I have two UIViews on my ViewController. I added panGesture to first view and when i start moving this view the second view will move towards first view. I want to detect an
what about
if (CGRectIntersectsRect(secondView.frame, sender.frame)) { // Do something }
CGRectIntersectsRect(::) : Returns whether two rectangles intersect.