【发布时间】:2012-03-01 14:55:48
【问题描述】:
我在我的应用程序中使用 UIWebview 作为richtexteditor,但是当我试图通过按键盘上的“返回”键来返回键盘时,它作为输入按钮工作并且控制进入下一行 我正在使用此代码, - (void)viewDidLoad
{
[webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur()"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
}
以及如何禁用自动更正,我想使用代码
<input type=\"text\" size=\"30\" autocorrect=\"off\" autocapitalization=\"off
我应该在哪里以及如何编写这段代码?
【问题讨论】:
标签: iphone uiwebview rich-text-editor