I use UIPanGestureRecognizer for move my UIView objects on the screen.
What I want to do
The main purpose is figure out how can I catch event when two objects cross each other. For example two UIView objects. So first one it’s static object (that don’t move) and another one I can move on the screen when I want it. Therefore I need to know a moment when my second object (UIView) cross a static object. Also main problem is that these views are located on different views. So first static view is located on view that is called “edit view” and another view is located on view that is called as “tool bar”. So that’s means that I can’t just compare two rect and enjoy it. Is there any way how to compare two object when they cross each other, but maybe without method that just compare they rect.
I think what you’re looking for is UIView’s convertRect:toView: method.