I have an image. I want to drag that image along a path. Path can be of circular or rectangular shape. If the image is being touched and dragged, it should only travel along the path and should not leave the path. I have tried using Core Graphics and Core animations but can't find the right way of doing it. I have searched on the net but it always shows how to move an object along a path. Can't find anything about dragging an object along a path. Also I have found that their is NO method, provided by Apple, to extract points from a UIBezierPath.
Is their anyway of doing this?