Latest 0.0.2
Homepage https://github.com/diniska/CustomKeyboard
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

CustomKeyboard

CI Status
Version

Customizable default iOS keyboard

Installation

The easiest way is to use CocoaPods. It takes care of all required frameworks and third party dependencies:

pod 'DCustomKeyboard', '~> 0.0'

Usage example

To add keyboard to your UITextView or UITextField use next code

DCustomGridKeyboard *keyboard = [[DCustomGridKeyboard alloc] initWithCharacters:@[
                                                                                 @[@"1", @"2", @"3"],
                                                                                 @[@"4", @"5", @"6"],
                                                                                 @[@"7", @"8", @"9"],
                                                                                 @[kDCustomAbstractKeyboardEmptyCharacter, @"0", kDCustomAbstractKeyboardBackSpaceCharacter]]];
[keyboard applyKeyboardToTextInput:textField];

The result is:
image alt

You can use any characters or strings to put them on keyboard. Also you can layout them as you want. For example there is another object DCustomLinesKeyboard

DCustomLinesKeyboard *keyboard = [[DCustomLinesKeyboard alloc] initWithCharactersLines:@[
                                                                                   @[@"А", @"В", @"Е", @"К"],
                                                                                   @[@"М", @"Н", @"О", @"Р"],
                                                                                   @[@"С", @"Т", @"У", @"Х"],
                                                                                   @[kDCustomAbstractKeyboardEmptyCharacter, kDCustomAbstractKeyboardEmptyCharacter, kDCustomAbstractKeyboardBackSpaceCharacter]]];

The result is:
image alt

Use constants

  • kDCustomAbstractKeyboardBackSpaceCharacter – to place backspace
  • kDCustomAbstractKeyboardEmptyCharacter – to place empty placeholder

Latest podspec

{
    "name": "DCustomKeyboard",
    "version": "0.0.2",
    "summary": "Customizable default iOS keyboard.",
    "description": "  You can simply add keyboard with any style to your project.nn                   * Think: Why did you write this? What is the focus? What does it do?n                   * CocoaPods will be using this to generate tags, and improve search results.n                   * Try to keep it short, snappy and to the point.n                   * Finally, don't worry about the indent, CocoaPods strips it!n",
    "homepage": "https://github.com/diniska/CustomKeyboard",
    "screenshots": [
        "https://raw.githubusercontent.com/diniska/CustomKeyboard/master/Examples/numbers_grid_keyboard_example.png",
        "https://raw.githubusercontent.com/diniska/CustomKeyboard/master/Examples/characters_grid_keyboard_example.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Denis Chaschin": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/diniska/CustomKeyboard.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Examples",
    "resources": "Resources/*.png",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This