
That is what I suppose to have. UIViewController with a dynamic number of draggable UIViews.
The cases that should be covered is:
-
When user start to drag and than in some moment take his finger off, if UIView is in “place to drop” area than it should be there, if not, then it should be turned back where it was.
2.If user draged UIView3 to ” place to drop”, Than UIView4 should relocate on place UIView3.
Is there any tutorials how to implement that ?
Have u any ideas ?
You may check the DragKit. It’s open source, so you may explore the logic and technic too.
As your views seems to be placed in grid, you may also check the AQGridView. Also an open source project, BTW. And it contains the Drag’n’Drop example.