RYNumberKeyboard
RYNumberKeyboard 是一個模仿支付寶的數(shù)字鍵盤,使用非常簡單,只需將你的TextFiled的keyboardType設置成UIKeyboardTypeNumberPad即可
Demo
https://github.com/Resory/RYNumberKeyboard
效果

RYNumberKeyboard.gif
使用
#import "UITextField+RYNumberKeyboard.h"
yourTextFiled.ry_inputType = RYIntInputType; //數(shù)字鍵盤
yourTextFiled.ry_inputType = RYIDCardInputType; //身份證鍵盤
yourTextFiled.ry_inputType = RYFloatInputType; //浮點數(shù)鍵盤
yourTextFiled.ry_interval = 4 //每隔4個數(shù)字輸入一個空格