开发者

can not show input method pane in UIWebView

I have created a simple UIViewController, and set a UIWebView as a default view.

When I inserted it i开发者_JS百科nto a NavigationController, it did not show input method anymore if I click in some text field in page.

Any ideas?

input method = soft keypad,

ps: i set the simple UIViewController as rootViewController of MainWindow, also take no effect. can not show soft keypad too.


I just encountered this. For me, the keyboard is apparently sitting behind my web view. I happened to rotate the device (in the simulator) and noticed, during the screen rotation drawing process, that I could see parts of the keyboard behind my webview. [Quoted] [1]

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. [Quoted] [2]

[1][2]: Reference


Is your web view in a modal view controller?


Pls check if the userInteraction is enabled for the web view. If not you can set it by

yourWebview.userInteractionEnabled = YES;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜