1
Touchesmoved가 내 커서 위치를 선택하지 않습니다.touchesMoved 위치 등록하지 않음
는이 코드를 가지고 :
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
CGPoint touchPoint = [[touches anyObject] locationInView:svEditView];
[((UIView *)[[svButtonsArray objectAtIndex:svTouchDownID] objectAtIndex:1]) setCenter:touchPoint];
NSLog(@"Touches moved");
NSLog(@"1. %i", touchPoint.x);
NSLog(@"2. %i", touchPoint.y);
}
그래서 올바른 위치로 이동 않습니다 주위로 드래그하라고하지만, NSLog에이 터치 포인트에 대한 모든 시간을 0 반환 년대에 UIView. 어떤 아이디어?
편집 : % f로 변경하면 작동하지만, % .00에서 큰 흔적이있는 전체 번호이므로 % i에서 작동하지 않는 이유는 확실하지 않습니다.
루트의 모든 UIView 하위 클래스에도 touch 메소드가 있습니까? 주로 svEditView? –