ios - 如何在 UIWebView 中激活 contentEditable div 的拼写检查?

标签 ios uiwebview

UIWebView (iOS 5.0) 不显示红色波浪拼写更正下划线:

id html= @"<div spellcheck=\"true\" contenteditable=\"true\"></div>"
[webView loadHTMLString:html baseURL:nil];

有可能得到它们吗?

最佳答案

Apple Safari Guidelines 提供了一些 HTML 标签属性

autocomplete: If off, deactivates automatic completion for an input element; If on, activates automatic completion for the element. Related Tags “input” Availability Available in Safari 1.0 and later. Available in iOS 1.1.1 and later.

autocorrect: If off, deactivates automatic correction for a form or input element; If on, activates automatic correction for the element. Availability Available in iOS 1.1.1 and later.

希望这对你有用。

关于ios - 如何在 UIWebView 中激活 contentEditable div 的拼写检查?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7927605/

相关文章:

ios - UIWebView 中的文本不可见

ios - UIActivityIndi​​cator 未在中心加载

ios - 当应用程序进入后台/事件状态时安全地暂停/恢复远程 UIWebView WebSockets

iphone - UIWebView 电影播放器​​被解雇的 iOS 6 错误

ios - 从右向左滑动时未调用 UISplitViewControllerDelegate/UIPopoverDelegate 方法

iphone - UIView 在转换 subview 时自动调整大小

ios - 以编程方式设置时标签不会更改

ios - 使用 UIWebView 的 -loadData :MIMEType:textEncodingName:baseURL: 时使用相对 URL

ios - 将弃用的 sizeWithFont 方法修改为 boundingRectWithSize :options:attributes:context

ios - 从静态方法更新 UI TableView