While I drag an uiimageview, the center is positioned at clickpoint..I am using the following code
imageView.center=[[touches anyObject] locationInView:self.view];
so the mouse jumps to image center even I drag at the corner.
How can I make the mouse to position at clicked position of the imageview.???
Thanx in advance
I’m supposing you want to move your imageView and the imageView is moving its center to your touch point “unintentionally”…
If you don’t want your imageView to set its center at the touch but be dragged from any point the user touhes it, keep track of the first CGPoint he touched, and then reposition your image at the relative distance between the previous two touchpoints