1.关闭首字母大写:
[_inputTextField setAutocapitalizationType:UITextAutocapitalizationTypeNone];
2.关闭自动联想功能:
[_inputTextField setAutocorrectionType:UITextAutocorrectionTypeNo];
3.修改键盘中的return键的样式,点击return键的协议方法也有,代理也要写好,避免无法使用
_inputTextField.returnKeyType = UIReturnKeyDone;
_inputTextField.delegate = self;
//协议方法,点击return方法是触发
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
XLsn0wLog(@"click");
return YES;
}