Custom keyboard with regular keyboards?

I am creating an application that uses a custom keyboard, now if I provide a standard English keyboard using the same globe icon that iOS uses, it should be able to switch to a standard English keyboard, but I'm not sure if the user can go back to my user keyboard from system keyboards (provided that the user has more than 1 keyboard).

Can anyone confirm that this is possible?

thanks

+4
source share
3 answers

This is not true. there is no "switch to user keyboard" button on the system keyboard. They don’t even know that you have created a custom keyboard.

What are you trying to achieve? Why are you building a custom keyboard? If you tell us, perhaps we can offer an alternative way to do what you need to do.

+1
source

You must set the inputAccessoryView to a UITextView with a button to switch between user and standard keyboards.

Each time the user clicks the button, you change myTextView.inputView between your user keyboard and nil , which restores the original keyboard.

https://developer.apple.com/library/ios/documentation/uikit/reference/UITextField_Class/Reference/UITextField.html#//apple_ref/occ/instp/UITextField/inputView

You will also need to reassign the first responder, as well as try to revive him if you want:

UITextInput text input animation

+1
source

What you need to do is make a regular keyboard to test this:

Application Extension Programming Guide

0
source

Source: https://habr.com/ru/post/1386928/


All Articles