2012-11-06 3 views
0

도와주세요. 나는 다음 문제가 :locationInView 호출시 오류 :

내가 UIViewController (내가보기 컨트롤러와 함께보기가) 내 하위 클래스에서 touchesMoved: 이벤트를 처리 할,하지만 난 호출 할 때 [aTouch locationInView:self] 예외 'NSInvalidArgumentException', reason: '-[MySomeSubclass convertPoint:fromView:]: unrecognized selector sent to instance 0xdc64000'을 얻었다.

아무도 나를 설명 할 수 있습니까, 왜 그 예외와 어떻게 고칠 수있어.

감사합니다.

+1

은 당신이해야 할 의미했다'[에이터 locationInView : self.view]'? – mkral

+0

오, 고마워요! 네,'self.view'를 잊었습니다. 오늘 너무 힘들어. – Lexandr

+0

공식 답변을 추가 했으므로 문제가 해결되면 올바르게 표시하십시오. – mkral

답변

3

은 다음과 같아야합니다 [aTouch locationInView:self.view]

관련 문제