Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pix3

macrumors newbie
Original poster
Aug 9, 2008
2
0
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 ?
 

pix3

macrumors newbie
Original poster
Aug 9, 2008
2
0
Here is a screen shot to illustrate:
 

Attachments

  • keyProb.jpg
    keyProb.jpg
    14.3 KB · Views: 135
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.