由于currentInputMode
在iOS 7.0中已弃用
那么用什么来获取当前的输入语言
我厌倦了activeInputModes
,但这不会改变顺序
NSArray *currentar = [UITextInputMode activeInputModes];
UITextInputMode *current = [currentar firstObject];
NSString *primaryLanguage = current.primaryLanguage;
NSLog(@"Current text input is: %@", primaryLanguage);
答案 0 :(得分:0)
试试这个:yourTextView.textInputMode.primaryLanguage;