Skip to content

codedad/SO_Drag_n_Snap_iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Description

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.

Compiling

ARC enabled, Tested on iOS5.0

Extendibility

More generic approach to add snap points dynamically.

Licensing

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

About

Dragging and Snapping images - StackOverflow example project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published