Today Bo Master has a mandatory pop-up system keyboard requirements, encountered some difficulties, here and we share, hope to progress together.
The cause is the use of Sogou in the process, the use of Chinese characters punctuation produced a bug, should be sogou problem. After a fruitless decision to disable the Sogou keyboard, use the system comes with the keyboard.
Tried a lot of methods, notifications, KVO and so on, finally found a system of API, very simple, share to everyone.
Add the following code to the Appdelegate.
Force the use of the system keyboard
-(BOOL) Application: (UIApplication *) application
Shouldallowextensionpointidentifier: (NSString *) extensionpointidentifier
{
if ([Extensionpointidentifier isequaltostring:@ "Com.apple.keyboard-service"]) {
return NO;
}
return YES;
}
iOS Development journal 15-Force Eject System keyboard (disable Sogou keyboard)