Insert a UIView between intercecting other UIView(s)
===

I have a screen which contains 9 UIViews (imagine 3x3 table with views, 3 views for each row) that takes all the screen.
I drag a UIView and then move it around, then I want as soon as touchEnded to place it somewhere inbetween the other intercepting UIViews and have again a 3x3 screen with the UIViews now of course reorder with the dragged UIView where I (somehow) put it.

Everything is going great except the reordering of the UIViews. I need a way to find out I guess with what other UIView is intersecting most (the biggest areas are intersecting inbetween all UIViews that draggable UIView frame has) and reorder all the UIViews with new positions.

All of these are happening in the superview which own all the views and has a NSMutableArray with the UIViews. I dont want to move the objects in the list but find a solution through frames.

Imagine you have 9 cards in a table and changing them position in this 3x3 grid.

Thank you.