2 Jun 2009

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.

Add Your Comment

Spam Protection by WP-SpamFree

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

  1. 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

    Nigel Crawley
  2. Thanks for the info, Aral. I encounter this situation when testing the app on the simulator, not yet testing it on the actual iPhone.

    Khomsan Phongphisansakun