tags:

views:

16

answers:

0

My app needs to allow users to drag and drop elements outside of their parent. I have a TableView with N number of elements in it. Each element is draggable. If an element is dragged to a certain location outside of it's parent view, it disappears. Think of dragging an element to a trash can, but the trash can is in a different tableview.

If the element is dropped anywhere else on the screen, it returns to its original position.

My issue is getting the location of the elements irrespective of their parent elements. I just need to know if the element being dragged is touching another element once it is dropped, though both are in different TableViews.