两行代码解决:
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *
)text
{
if ([[[UITextInputMode currentInputMode]primaryLanguage] isEqualToString:
@"emoji"]) {
return NO;
}
return YES;
}
转载于:https://www.cnblogs.com/yulongjiayuan/p/5405762.html