IOS development diary 15-force pop-up system keyboard (disabled sogou keyboard), ios15-
Today, the blogger needs to force the system keyboard to pop up and has encountered some difficulties. I would like to share with you the hope to make common progress.
The cause is that when sogou is used, a bug occurs when Chinese Punctuation Marks are used. It should be a problem with sogou. After some unsuccessful inquiries, I decided to disable sogou keyboard and use the built-in keyboard.
I tried many methods, such as notifications and KVO, and finally found a system API, which is very easy to share with you.
Add the following code to AppDelegate.
// Force the system keyboard
-(BOOL) application :( UIApplication *) application
ShouldAllowExtensionPointIdentifier :( NSString *) extensionPointIdentifier
{
If ([extensionPointIdentifier isEqualToString: @ "com. apple. keyboard-service"]) {
Return NO;
}
Return YES;
}