Latest 1.0.1
Homepage https://github.com/kbiakov/KBNumberPad
License Apache 2.0
Platforms ios 9.0
Frameworks UIKit
Authors

KBNumberPad (iOS)

CI Status
Version
License
Platform

KBNumberPad is a customizable number pad as replacement of default.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 8.0+
  • iOS 9.0+
  • Swift 3.0+

Setup

CocoaPods

KBNumberPad is available through CocoaPods, dependency manager for Cocoa projects. To install it, run the command:

$ gem install cocoapods

To integrate KBNumberPad into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'KBNumberPad', '~> 1.0.0'
end

Then, run the following command:

$ pod install

Usage

You can customize base components of this number pad view as follows:

let numberPad = KBNumberPad()
numberPad.setDelimiterColor(UIColor.lightGray)
numberPad.setButtonsColor(UIColor.black)
numberPad.setButtonsBackgroundColor(UIColor.white)

This snippet shows that all buttons grouped, but there are methods to do setup separately like:

numberPad.setNumberButtonsColor(UIColor.black)
numberPad.setClearButtonColor(UIColor.darkGray)
numberPad.setDoneButtonColor(UIColor.darkGray)

There is params to customize: it’s color of grouped or all buttons, font & background.
Also you can change the icon for clear button.

Screenshots

2017-05-14_20.29.02.png
2017-05-14_20.51.04.png
2017-05-14_20.59.17.png

Author

Kirill Biakov

License

KBNumberPad is available under the Apache License 2.0 license.

Latest podspec

{
    "name": "KBNumberPad",
    "version": "1.0.1",
    "summary": "Customizable number pad as replacement of default.",
    "description": "KBNumberPad is a customizable number pad as replacement of default.",
    "homepage": "https://github.com/kbiakov/KBNumberPad",
    "screenshots": [
        "https://s21.postimg.org/w7aup8887/2017-05-14_20.29.02.png",
        "https://s16.postimg.org/6pmpy72ut/2017-05-14_20.51.04.png",
        "https://s3.postimg.org/mah7jtcmr/2017-05-14_20.59.17.png"
    ],
    "license": {
        "type": "Apache 2.0",
        "file": "LICENSE"
    },
    "authors": {
        "Kirill Biakov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kbiakov/KBNumberPad.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "KBNumberPad/Classes/**/*",
    "resources": "KBNumberPad/Assets/*.xcassets",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This