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

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

问题描述

我的UIWebView加载了一个令人满意的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是不可编辑的,你不能成为第一响应者。
你可以在那里使用javascripts,试试这个答案

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 with contentEditable(html editing),first responder handling?

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

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