PSNumberPad 1.4.1

PSNumberPad 1.4.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2016

Maintained by Shawn Pan.




PSNumberPad (中文在后)

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

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。

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

PSNumberPad

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

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

预览

image

导入

手动导入

下载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.其他初始化方法是无效的。

更新日志

更新日志

更多信息请查看源码。