Hi, iv found this tutorial on dragging 2 things at the one time:

YouTube - iPhone SDK Tutorial - Dragging more than 1 image around on the screen

To do so it says to use the following code:

@implementation exampleViewController

-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
	UITouch *touch = [[event allTouches] anyObject];
	if ([touch view] == image1) {
		CGPoint location = [touch locationInView:self.view];
		image1.center = location;
	if ([touch view] == image2) {
		CGPoint location = [touch locationInView:self.view];
		image2.center = location;
For some reason when i test my app on the device and in simulator, i get no errors but the images remain still.

Can anyone explain why ?