Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a custom keyboard

How do I go about creating a custom keyboard/keypad that will show up when some one taps on a UITextField? I would like to display a keypad with a, b, c, 1, 2, 3 and an enter button, nothing else. The keypad should work and behave like the standard keyboard does (in behavior) but it will definitely look different.

I can't find any example and the best I've found is to filter characters with existing keyboard which is an unacceptable solution.

like image 640
HM1 Avatar asked Jan 10 '11 02:01

HM1


People also ask

Can any keyboard be customized?

People can easily make any keyboard they want because customizable mechanical keyboards allow users to personalize the typing feel, remap the keys, set the key combinations, and more.

What makes a custom keyboard custom?

“True” Custom Keyboards A true, “traditional” custom keyboard is usually sold as a kit. That is, only the case, PCB, and plate are bundled together, so you still need to purchase switches, keycaps, and stabilisers – though some kits do include this particular component – to complete the build.


1 Answers

I think you're looking for the "Text, Web, and Editing Programming Guide for iOS"

The UIKit framework includes support for custom input views and input accessory views. Your application can substitute its own input view for the system keyboard when users edit text or other forms of data in a view. For example, an application could use a custom input view to enter characters from a runic alphabet. You may also attach an input accessory view to the system keyboard or to a custom input view; this accessory view runs along the top of the main input view and can contain, for example, controls that affect the text in some way or labels that display some information about the text.

To get this feature if your application is using UITextView and UITextField objects for text editing, simply assign custom views to the inputView and inputAccessoryView properties. Those custom views are shown when the text object becomes first responder...


This might serve as a good introduction: customizing the iOS keyboard

like image 56
Jonah Avatar answered Sep 21 '22 22:09

Jonah