내가이 방법을 사용하여 X 좌표와 Y 좌표에 따라보기에서 UIImageView
(또는 내가 가진 무엇이든)을 좀하고 싶습니다 :방법 X, Y에 따라보기에서 개체를 얻을 수 (있는 touchesMoved)
- (void) touchesMoved: (NSSet *)touches withEvent:(UIEvent *)event {
CGPoint tappedPt = [[touches anyObject] locationInView:viewIndex];
int xPos = tappedPt.x;
int yPos = tappedPt.y;
NSLog(@"xPos %i yPos %i ", xPos, yPos);
// do something with xPos and yPos like add them to an array
}
을 고마워요!
이 터치 포인트에 따라 일부보기를 이동하겠습니까? – tipycalFlow
nop 나는 uiimageview가 있는지 없는지, 그리고 uiimageview가 있으면 손가락 크기를 조정하고 크기를 조정할 때마다 손가락을 움직일 때마다 (그래서 x와 y를 얻음) 알고 싶습니다. – xGoPox