Create your own custom keyboard with your own images / emoticons

I would like to create a custom keyboard with my own images and layout similar to the Emotikarl app in the AppStore.

Please take a look at this screenshot:

custom keyboard example

I would like to add my own list of images / emoticons (all images will be created by me) on the keyboard. And when I click the image / emoticon, the image / emoticon will be inserted into the text view at the top of the application.

I have already tried looking at Github and other websites, but I have not found anything like it. How can I do it?

+6
source share
1 answer

You need to implement your user keyboard as a subclass of UIView, implement all user interfaces, actions.

You also need a custom UIView for a toolbar with a selector between keyboards. (by changing the InputView UITextField property to your custom keyboard or zero for the standard keyboard) Then you can set the UITextField inputAccessoryView to this custom toolbar.

Mark the attached user keyboard from one of my projects: https://dl.dropboxusercontent.com/u/48223929/CustomizeTextFieldKeyboard.zip

enter image description here

+1
source

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


All Articles