Best approach will be overwriting send event of UIApplication
and UIWindow
but its not possible in your case.
Try to add UIGestureRecognizer
to your application shared UIWindow
then set its delegate and implement below delegate method.
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
return NO;
}
By returning NO
will prevent the gesture recognizer from seeing this touch object.
You can add your implementation for tracking touch event inside this method.