Problems with capturing touches where the Status bar was displayed?

Discussion in 'iOS Programming' started by midntdj, Jun 7, 2010.

  1. midntdj macrumors newbie

    Sep 23, 2009
    Has anyone run into this problem?

    I have 2 ViewControllers, one in portrait mode & the other Landscape mode. The Statusbar.hidden = NO.

    When I switch views, the status bar rotates correctly to landscape mode.

    The problem is that I have a button on the left side of the landscape view that the touch doesn't seem to get captured where the status bar used to be displayed in the Portrait mode.

    i.e y < 20 pixels does not trigger the button touch.

    I've seen other postings, but all of them have the statusbar.hidden = YES and I need to display the statusbar. I'm seeing this problem in both the Simulator and on the iPhone device.

    Any suggestions?

  2. midntdj thread starter macrumors newbie

    Sep 23, 2009
    Still looking for a solution. Not sure if this is a bug to the iPhone itself or just a flag that needs to be set in the code.

    It appears that when I switch from portrait to landscape mode and move the status bar accordingly, the landscape view contains a dead zone on the left where the status bar use to be from the portrait mode.

    If anyone has any idea as to why, or can point me in the right direction I would be most appreciative.


Share This Page