【问题标题】:Is that possible to to change keybroadType in UIWebView是否可以更改 UIWebView 中的 keybroadType
【发布时间】:2016-01-04 09:51:11
【问题描述】:

我的应用程序是使用 uiwebview(使用 js、css..)的博客编辑器应用程序。当我想将键盘从默认(文本)更改为 Phone Pad 时遇到问题。谷歌搜索我知道一种使用方法,但对我的情况没有帮助。

是否可以更改键盘类型,如UITextViewUITextField

// textField is set to a UIKeyboardType other than UIKeyboardTypeEmailAddress
[textField setKeyboardType: UIKeyboardTypePhonePad];
[textField reloadInputViews];

也许子类UIWebView 自定义喜欢 UIWebView+GUIFixes

感谢您的提前!

【问题讨论】:

  • 如果你使用搜索作为 uitextfield 意味着它是可能的

标签: ios objective-c uiwebview keyboard


【解决方案1】:

无法为 UIWebview 设置键盘类型。 可以通过设置网页中使用的输入元素类型来实现。

<input type="text"> 
<input type="tel">

【讨论】:

    猜你喜欢
    • 2015-04-22
    • 1970-01-01
    • 2016-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-12
    • 1970-01-01
    相关资源
    最近更新 更多