@interface CustomApplication : UIApplication
@end
@implementation CustomApplication
(void)sendEvent:(UIEvent *)event {
if (event.type == UIEventTypeTouches) {
for (UITouch *touch in event.allTouches) {
NSString *windowName = NSStringFromClass([touch.window class]);
if ([windowName isEqualToString:@"UIRemoteKeyboardWindow"]) {
return;
}
}
}
[super sendEvent:event];
}
@end