Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

UIWebView - can't get keyboard to appear

I have a UIWebView in a modal view with the express purpose of completing a short web form. However, when I tap in an input box on the web page, the keyboard doesn't appear. The view repositions as if the keyboard is there, but it's not....

I have even tried totally replacing my web view code with that from the sample Apple UICatalog app - but the same thing happens.

Has anyone else seen this behaviour ?

I"m wondering if it's because my navigation stack is a little bit complex at that point: navigation controller -> modal base view controller -> pushed view controller -> modal web view controller ? I wonder if the keyboard is being shown 'behind' the current view or something strange ?

Mac Mini, Mac OS X (10.5.2)

Posted on Jul 25, 2008 6:37 AM

Reply
5 replies

Jul 28, 2008 12:08 PM in response to Andrew Rennard

I don't know if I was in modal view. I had been modifying the UI Catalog sample and had been moving code around and changing urls. Since I first posted, I started over with a simpler structure, which solved the problem for me. I think I had been inappropriately setting up the webview in more than one location which caused confusion in my logic.

Good luck.

Jul 29, 2008 4:16 AM in response to Andrew Rennard

I can confirm that by setting the view opacity I can see the keyboard appear BEHIND the web view.

I've tried everything I can think of, and there's no way I can find to control the appearance of the keyboard. Really frustrating, as my only option is to send the used into Safari instead.

Interestingly, I can't seem to reproduce this problem in a freshly created sample application - yet I can't see what the problem can be with my view hierarchy.

UIWebView - can't get keyboard to appear

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.