以下内容应该有效:您必须在代码中使用 UIKeyboard 通知
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillBeHidden:)
name:UIKeyboardWillHideNotification object:nil];
Run Code Online (Sandbox Code Playgroud)
然后在您的keyboardWillBeHidden:或类似命名的方法中使用答案(下面的链接),它会返回当前所选语言的两个字母代码。
因此,keyboardWillBeHidden:当键盘隐藏时,您的方法会被调用,从系统中读取当前选择的键盘语言选项。
这就是理论,我自己没有尝试过,祝你好运。
| 归档时间: |
|
| 查看次数: |
1098 次 |
| 最近记录: |