简体   繁体   English

如何在进入我的应用程序时自动切换到 iOS 自定义键盘?

[英]How do I automatically switch to the iOS custom keyboard when entering my app?

I would like when entering my app to automatically switch to my custom keyboard like the Facemoji app.我希望在进入我的应用程序时自动切换到我的自定义键盘,如Facemoji应用程序。 Is this possible to force user to open only custom keyboard without going into setting option.这是否可以强制用户只打开自定义键盘而不进入设置选项。 I want whenever user opens the app.我希望每当用户打开应用程序时。 only custom keyboard should open, not other.只有自定义键盘应该打开,而不是其他。 In my app there is preview function, show as extended keyboard otherwise it will show default keyboard i will fail.在我的应用程序中有预览功能,显示为扩展键盘,否则将显示默认键盘我会失败。 thanks!谢谢!

UITextField have property inputView You can set any view you want inside yours application. UITextField有属性inputView您可以在您的应用程序中设置您想要的任何视图。 So you can use use the same view used for your's custom keyboard因此您可以使用与您的自定义键盘相同的视图

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM