Simulator/device discrepancy on iPhone when overriding sendEvent: on UIWindow

I'm overriding sendEvent: (- (void)sendEvent:(UIEvent *)event) on UIWindow to get notifications of touches in my application and I noticed a discrepancy between the simulator and the device during testing:

When testing with the simulator and with a hidden status bar, I got touch notifications on the entire screen except for the status bar area. However, when testing on the actual device, I get touch/tap notifications on the entire screen, including the area of the hidden status bar.

Hope this helps anyone else who encounters this: simply test on the device and it will work as intended.

Comments