나는 그것을 클릭하면 왼쪽과 오른쪽으로 이동하는보기가 있습니다. 나는보기의 중심점 만 얻는다. 앵커 포인트에 uiview를 가져 오는 방법은 어디에서 움직일지를 클릭하기 때문입니다. 내가 할 경우uiview touch move uview에 앵커 포인트 가져 오기
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"touchesMoved called");
UITouch *touch = [[event allTouches] anyObject];
CGPoint touchpoint=[touch locationInView:self.view];
if ([touch view]==secondView)
{
secondView.center=touchpoint;
[self animateFirstPoint:[touch view]];
}
}