나는보기에 4 개의 이미지 뷰를 가지고있다. 나는 4 개의 이미지를 움직일 수있게 만들고 싶다. 나는 움직이는 방법을 사용했다. 그것은 나의 이미지 뷰 중 3 개를 위해 작동한다. 네 번째는 움직이지 않는다. 터치는 NSlog가 확인한 모든 경우에 감지됩니다. 도움을 청하십시오.Uiimageview 움직이지 않는다
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch *touch = [[event allTouches] anyObject];
CGPoint location = [touch locationInView:self.view];
if ([touch view] == textstyleImage) {
textstyleImage.center = location;
}
else if ([touch view] == clipartImage){
clipartImage.center = location;
}
else if([touch view] == customMessage){
customMessage.center = location;
}
else if([touch view] == galleryImage){
galleryImage.center = location;
}
}
문제를 치료할 코드를 보여주십시오. – HarshIT