如何禁用第三方键盘

(Stackoverflow): How do you disable a 3rd party keyboard in your iOS app

-(BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier
{
   if (extensionPointIdentifier == UIApplicationKeyboardExtensionPointIdentifier)
   {
       return NO;
   }
   return YES;
}

如何在某个页面禁用第三方键盘

Forcing app to use Apple Keyboard in iOS 8

(目前还没有进行测试验证)