Last active
May 26, 2016 01:48
-
-
Save zedzhao/53e2fc4a10e11655ba32c623300666f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(changeInputMode:) | |
name:UITextInputCurrentInputModeDidChangeNotification object:nil]; | |
- (void)changeInputMode:(NSNotification*)notification | |
{ | |
NSString *inputMethod = [[UITextInputMode currentInputMode] primaryLanguage]; //判断当前键盘类型, emoji en-US en-HANS | |
if ([inputMethod isEqualToString:@"emoji"]) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
检测键盘状态改变。