Rotating UIWebView keyboard problem

Discussion in 'iOS Programming' started by pix3, Aug 9, 2008.

  1. pix3 macrumors newbie

    Joined:
    Aug 9, 2008
    #1
    I am developing an application that uses a UIWebView. The applications interface supports rotation. During testing I have noticed that if the keyboard is up (for example when the user clicks on a textbox in a web page) and the phone is rotated from portrait to landscape the keyboard is not displayed correctly.

    This ranges from the keyboard being present and in landscape but on its side (whilst testing on the phone) to crashing the app in the simulator.

    I have noticed that other apps e.g. safari dont let you rotate the phone if the keyboard is up. I have tried using the UIKeyboard notifications to establish whether the keyboard is present and then disable the rotation. This works fine with a UITextField as the notifications are received as you would expect. However it seems that when using a UIWebView the notifications are not sent and therefore the rotation can not be disabled.

    Anyone else had the same issues with UIWebView or know of solutions to this problem ?
     
  2. pix3 thread starter macrumors newbie

    Joined:
    Aug 9, 2008
    #2
    Here is a screen shot to illustrate:
     

    Attached Files:

  3. Didier Guillion macrumors newbie

    Joined:
    Aug 13, 2008
    #3
    Same problem on my app.
    I filled a Radar, this is a know problem.

    Best regards
     

Share This Page