以编程方式在 contenteditable UIWebView 中显示键盘 [英] Show keyboard in contenteditable UIWebView programmatically

查看:20
本文介绍了以编程方式在 contenteditable UIWebView 中显示键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 UIWebView 加载一个 contenteditable html 内容.我想让 UIWebView 获得焦点并在 UIWebView 中显示键盘.

My UIWebView loads a contenteditable html content. I want to let the UIWebView get focused and show keyboard in the UIWebView.

我使用 [self.webview becomeFirstResponder],但它不起作用.有什么变通的方法吗?

I use [self.webview becomeFirstResponder], but it doesn't work. Is there any work around method?

谢谢.

推荐答案

UIwebview 不可编辑,您不能使其成为第一响应者.如果您可以为此目的使用 javascript,请尝试此答案

UIwebview is not editable and you can not make it first responder. Where as you can use javascripts for that purpose , try out this answer

UIWebView 与 contentEditable(html 编辑),第一响应者处理?

这篇关于以编程方式在 contenteditable UIWebView 中显示键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆