Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create my own custom keyboard with my own images / emoticons [closed]

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

Please take a look at this screenshot:

custom keyboard example

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

I already tried looking on Github and other websites, but I didn't find anything like this. How should I do this?

like image 847
ababab5 Avatar asked Aug 19 '14 16:08

ababab5


1 Answers

You need implement your custom keyboard as subclass of UIView, implement all UI, actions.

Also you need custom UIView for toolbar with selector between keyboards. (by changing UITextField's inputView property to your custom keyboard, or to nil, for standard keyboard) Then you can set UITextField's inputAccessoryView to this custom toolbar.

Check attached custom keyboard from one of my projects: https://dl.dropboxusercontent.com/u/48223929/CustomizeTextFieldKeyboard.zip

enter image description here

like image 60
Vitalii Gozhenko Avatar answered Oct 11 '22 17:10

Vitalii Gozhenko