I am intercepting all events (for debugging purposes) in my custom UIApplication
subclass:
[super sendEvent:event];
if(event.type == UIEventTypeTouches){
if(event.allTouches.anyObject.phase == UITouchPhaseBegan){
// NSLog(@"Touch began on view %@", event.allTouches.anyObject.view);
}
}
It is working for any touch, regardless of the view, gesture recognizers, user interaction etc.
However, I've got a MKMapView
that isn't receiving any touches (user interaction is enabled) and not even forwarding touches to the application instance. In other words, when I touch that specific MKMapView
, sendEvent:
isn't called on application.
How is this even possible? As far as I know, no matter what I do, UIApplication
should always receive a touch at the sendEvent:
method.
Am I missing something? (I am on iOS 11.4)