UIWebView的setKeyboardAppearance [英] setKeyboardAppearance for UIWebView
本文介绍了UIWebView的setKeyboardAppearance的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
众所周知, UITextView
和 UITextField
的键盘外观可以设置如下:
It is well know that the keyboard appearance of UITextView
and UITextField
can be set as following :
[self.textField setKeyboardAppearance:UIKeyboardAppearanceAlert];
但我们如何才能设置 UIWebView的键盘外观
?
But how could we set the keyboard appearance of a UIWebView
?
实际上,我在这里使用 ckeditor 进行HMTL编辑。
Actually, here im using ckeditor for HMTL editing.
推荐答案
不幸的是,您无法使用Apple的UIKit API为UIWebView设置键盘外观。
Unfortunately, you can not set the keyboard appearance for a UIWebView using Apple's UIKit APIs.
但是您可以使用html标签指定输入类型所以:
You can however specify the input type using html tags like so:
<input type="text" size="30" autocorrect="off" autocapitalization="on">
以下是其他参数。
Text: <input type="text"></input>
Telephone: <input type="tel"></input>
URL: <input type="url"></input>
Email: <input type="email"></input>
Zip code: <input type="text" pattern="[0-9]*"></input>
Apple文档中的更多信息:
More info in the Apple docs:
这篇关于UIWebView的setKeyboardAppearance的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文