Latest 1.0.3
Homepage https://github.com/xiaozhuxiong121/PGNumberKeyboard
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

一款非常简单漂亮灵活的自定义数字键盘,可以输入负数,内置了数字验证算法。你不需要在判断输入的小数或者负数是否合法

Installation with CocoaPods

pod 'PGNumberKeyboard', '~> 1.0.3'

Usage

UITextField

#import <PGNumberKeyboard/PGNumberKeyboard.h>

self.yourTextField.inputView = [[PGNumberKeyboard alloc]initWithTextField:self.yourTextField];

UITextView

self.yourTextView.inputView = [[PGNumberKeyboard alloc]initWithTextView:self.yourTextView];

Advanced Usage

UITextField

PGNumberKeyboard *keyboard = [[PGNumberKeyboard alloc]initWithTextField:self.yourTextField];
keyboard.delegate = self;
self.yourTextField.inputView = keyboard;

#pragma mark - PGNumberKeyboardManagerDelegate

- (void)editChanage:(id)sender {
}

UITextView

PGNumberKeyboard *keyboard = [[PGNumberKeyboard alloc] initWithTextView:self.yourTextView];
keyboard.delegate = self;
self.yourTextView.inputView = keyboard;

#pragma mark - PGNumberKeyboardManagerDelegate

- (void)editChanage:(id)sender {
}

Overview

http://www.jianshu.com/p/d6455564675e

Latest podspec

{
    "name": "PGNumberKeyboard",
    "version": "1.0.3",
    "summary": "u4e00u6b3eu975eu5e38u7b80u5355u6f02u4eaeu7075u6d3bu7684u81eau5b9au4e49u6570u5b57u952eu76d8.",
    "homepage": "https://github.com/xiaozhuxiong121/PGNumberKeyboard",
    "license": "MIT",
    "authors": {
        "piggybear": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/xiaozhuxiong121/PGNumberKeyboard.git",
        "tag": "1.0.3"
    },
    "source_files": [
        "PGNumberKeyboard",
        "PGNumberKeyboard/**/*.{h,m}"
    ],
    "resources": "PGNumberKeyboard/keyboardDelete.png",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This