Please try this ...
Here selectedImageCat is the gobal uiimageview object, and touchimgView is the selection (touched) imageview
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { for (UITouch *touchPoint in touches) { if(CGRectContainsPoint(touchimgView.frame, [touchPoint locationInView:self.view])) selectedImageCat=(UIImageView*)touchimgView; } } -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { if (selectedImageCat!=nil) { CGPoint pt = [[touches anyObject] locationInView:self.view]; [selectedImageCat setCenter:pt]; } } -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
Rohit source share