Latest 1.4.1
Homepage https://github.com/DeveloperPans/PSNumberPad
License MIT
Platforms ios 7.0, requires ARC
Authors

PSNumberPad (中文在后)

Pod Version
License
Platform

A number keyboard for price inputing.

Apple have many keyboard but no one suitable price inputing completely.
PSNumberPad fill the blank.

Preview

image

Getting Start

Recommend Import with cocoapods

Add follow line in your podfile.

pod 'PSNumberPad'  
Import manually

Download zip and unarchiver.Drag ‘PSNumberPad’ folder into your project.

Usage

Make a lazy initlazer.


@property (nonatomic, strong) PSNumberPad *numberPad;

- (PSNumberPad *)numberPad
{
    if (!_numberPad)
    {
        _numberPad = [[PSNumberPad alloc] init];
    }
    return _numberPad;
}

Tell PSNumberPad with is current inputing textField


self.numberPad.textField = self.textField;

Notice:

  1. The only way to init PSNumberPad is - (instancetype)init. Other initialzer is useless.

Change Log

Change Log

For more,download and see the demo。

==============================中文分割线==========================

一个仅能输入数字和小数点的键盘。常用于需要输入价格的场景。

苹果的键盘类型已经可以满足大多数开发需求了。但遇上O2O类App的开发 仍然有硬伤,那就是没有一个好用的,仅能输入数字和小数点的键盘。如果用其他键盘,会增加许多处理字符的工作量,最主要的是用户体验比较差。PSNumberPad弥补了这一空白。

预览

image

导入

推荐 通过Cocoapods导入

在你的Podfile文件中加入如下一行

pod 'PSNumberPad'
手动导入

下载zip并解压。将PSNumberPad文件夹拖入你的Xcode工程中。

使用方法

推荐使用懒加载初始化


@property (nonatomic, strong) PSNumberPad *numberPad;

- (PSNumberPad *)numberPad
{
    if (!_numberPad)
    {
        _numberPad = [[PSNumberPad alloc] init];
    }
    return _numberPad;
}

给numberPad的textField赋值


self.numberPad.textField = self.textField;

注意:

  1. 只能使用- (instancetype)init方法初始化PSNumberPad.其他初始化方法是无效的。

更新日志

更新日志

更多信息请查看源码。

Latest podspec

{
    "name": "PSNumberPad",
    "version": "1.4.1",
    "summary": "A number keyboard for input price.",
    "description": "A number keyboard for input price.nApple have many keyboard but no one compeletly suitable the scene,which is price input.nPSNumberPad fill this blank.",
    "homepage": "https://github.com/DeveloperPans/PSNumberPad",
    "screenshots": "https://raw.githubusercontent.com/DeveloperPans/PSNumberPad/master/PSNumberPad.gif",
    "license": "MIT",
    "authors": {
        "Pan": "[email protected]"
    },
    "social_media_url": "http://shengpan.net",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/DeveloperPans/PSNumberPad.git",
        "tag": "1.4.1"
    },
    "source_files": "PSNumberPad/**/*.{h,m}",
    "resources": "PSNumberPad/**/*.{xib,png}",
    "resource_bundles": {
        "PSNumberPadIcons": "PSNumberPad/icons/*.png"
    }
}

Pin It on Pinterest

Share This