简体   繁体   中英

iOS custom keyboard extension - have my custom view on top of keyboard

I am curious if this is possible. I don't really want to create my own full keyboard as I want to give user the ability to use whatever keyboard they have. I just want to add my view on top of their keyboard which shows better suggestions for autofill. for example if user uses the swype keyboard in all apps, i want to add my own view on top of the keyboard which shows additional suggestions for the predictive text. I am working on a medical related app and many of the words are not automatically there in the build in dictionary, so I want to show it in my view in all keyboards.

Can this be done? I have tried and seems like i might be out of luck on this one.

我认为您可以将其作为仅插入应用程序的框架,只需为UITextfield创建扩展,并UITextfield提供具有所需功能的工具栏,然后将其inputAccessoryView用作您的工具栏,那么无论哪个键盘用户使用它将工具栏放在顶部

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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