// 不让输入表情
if ([textField/textView isFirstResponder]) {
if ([[[textField/textView textInputMode] primaryLanguage] isEqualToString:@"emoji"] || ![[textField/textView textInputMode] primaryLanguage]) {
NSLog(@"输入的是表情,返回NO");
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示!" message:@"此处不能输入表情" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定",nil];
[alertView show];
return NO;
}
}