In my experience, the lowest level at which you can intercept and handle all touches is UIApplication (its derivation from UIResponder). There is nothing difficult, since you only need to redefine:
- (void) sendEvent: (UIEvent *) event
{
[super sendEvent: anEvent];
/ * Place your custom * /
/ * processing code here * /
}
source
share