The purpose of this example project is to illustrate a basic UIImageView dragging behaviour using PanGestureRecognizer. Also it has a basic feature of snapping the image to certain points on the iPhone user interface by calculating distances and selecting the proper snap-target by sorting the distances.
ARC enabled, Tested on iOS5.0
More generic approach to add snap points dynamically.
Feel free to use this source code for your purpose. If you find it useful give an upvote on my SO answer regarding the scope of this project: http://stackoverflow.com/questions/16639441/how-to-drag-a-uiimageview/16659271#16659271