I wanna to create dynamically UIImageView on every tap on main view and also wanna to move all the created UIImageView by finger movement.I've got success to dynamic creation on every touch my code is below :
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint pt = [touch locationInView:self.view]; imgView = [[[UIImageView alloc] initWithFrame:CGRectMake(pt.x,pt.y, 100, 100)] autorelease]; imgFilepath = [[NSBundle mainBundle] pathForResource:@"img" ofType:@"png"]; img = [[UIImage alloc] initWithContentsOfFile:imgFilepath]; imgView.tag=i; [imgView setImage:img]; [img release]; [self.view addSubview:imgView]; } Now I wanna to move any of the dynamically created UIImageView by finger movement on it. Thanks.