思路:禁用了表情键盘
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)string{
DLog(
@"[[UITextInputMode currentInputMode]primaryLanguage] is %@"
,);
if
([[[UITextInputMode
currentInputMode]primaryLanguage]
isEqualToString:
@"emoji"
])
{
return
NO;
}
return
YES;
}