当用户点击虚拟键盘my(基于HTML / CSS / JS)网站上的返回键时,我想解雇iOS键盘。这可能吗?
目前的表格如下:
<input type="email" class="form-control" placeholder="Enter Email"
id="email-form" autocorrect="off" autocapitalize="off">
感谢
答案 0 :(得分:-1)
Dismiss iOS Keyboard on website
当您使用具有演示文稿样式UIModalPresentationFormSheet的模态ViewController呈现UIWebView时,将禁用键盘解除! 您必须覆盖ViewController的disablesAutomaticKeyboardDismissal方法:
- (BOOL)disablesAutomaticKeyboardDismissal {
return NO;
}