2010-02-18 1 views

답변

2

제 경험에 따르면 모든 작업을 가로 채고 처리 할 수있는 가장 낮은 수준은 UIApplication (UIResponder에서 파생 됨)입니다.

 
- (void)sendEvent:(UIEvent *)event 
{ 
    [super sendEvent:anEvent]; 
    /* Place your custom */ 
    /* processing code here*/ 
} 
2

UIResponder 클래스 내부의 touches 개체입니다.

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIResponder_Class/Reference/Reference.html#//apple_ref/occ/cl/UIResponder

당신은있는 touchesMoved, touchesBegan 및 touchesEnded에 액세스 할 수 있습니다. 당신은 이것들로 무엇이든 할 수 있습니다.

+0

- [UIApplication sendEvent :]가 하위 수준 인 경우에만 여기에 아무 것도 어렵지 않습니다. – rpetrich

관련 문제