无法在 UIWebView 中显示输入法窗格
我创建了一个简单的 UIViewController
,并将 UIWebView
设置为默认视图。
当我将其插入 NavigationController
中时,如果我单击页面中的某些文本字段,它不再显示输入法。
有什么想法吗?
输入法=软键盘,
ps:我将简单的UIViewController设置为MainWindow的rootViewController,也没有效果。也无法显示软键盘。
I have created a simple UIViewController
, and set a UIWebView
as a default view.
When I inserted it into 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚遇到了这个。对我来说,键盘显然位于我的网络视图后面。我碰巧旋转了设备(在模拟器中),并注意到在屏幕旋转绘图过程中,我可以看到 webview 后面的键盘部分。 [引用] [1]
有趣的是,我似乎无法在新创建的示例应用程序中重现此问题 - 但我看不出我的视图层次结构可能存在什么问题。 [引用] [2]
[1][2]: 参考
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
请检查网页视图是否启用了
userInteraction
。如果没有你可以设置它Pls check if the
userInteraction
is enabled for the web view. If not you can set it by