//判断当前输入法 -(void)textViewDidChangeSelection:(UITextView *)textView { NSLog(@"wewe:%@",[[UITextInputMode currentInputMode] primaryLanguage]); //do something en-US为英文。。zh-hans为中文 /* if ([[[UITextInputMode currentInputMode] primaryLanguage] isEqualToString: @"en-US"]) { NSLog(@"en-US"); } else { NSLog(@"zh-hans"); } */ }
iOS 判断当前输入法。UITextInputMode
最新推荐文章于 2022-12-20 17:35:19 发布