1: 设置keyboardDisplayRequiresUserAction属性为NO
_webView.keyboardDisplayRequiresUserAction = NO;
2:可编辑对象id假设是content
- (void)webViewDidFinishLoad:(UIWebView *)webView {
//默认获取光标
[self.webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('content').focus()"];
}