I'm overriding sendEvent: (
The Simulator/device discrepancy on iPhone when overriding sendEvent: on UIWindow article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
- (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.
The Simulator/device discrepancy on iPhone when overriding sendEvent: on UIWindow article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

Mmm… that might explain the strange behavior I’m getting with one of my openFrameworks iPhone apps in that part of the simulator screen.
cheers
Nigel
Thanks for the info, Aral. I encounter this situation when testing the app on the simulator, not yet testing it on the actual iPhone.