Latest 1.0.0
Homepage https://github.com/demoker/MicrometerLevelFormat
License MIT
Platforms ios 7.0, requires ARC
Authors

概述:

MicrometerLevelFormat是一个对于UITextField实现的数字千分位功能的类别。

图例:

mi

使用方法:

1.添加UITextField+MicrometerLevelFormat到项目工程
2.在textField delegate方法中打开千分位功能即可,示例代码如下:

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
    [textField openMicrometerLevelFormat];
    return YES;
}

备注:textfiled的键盘类型必须是数字键盘,因为这里千分位的功能只对数字起作用。😁😁😁

欢迎大家使用哟!多交流 附上本人QQ:909352358

Latest podspec

{
    "name": "MicrometerLevelFormat",
    "version": "1.0.0",
    "summary": "micrometer level fromat (u5343u5206u4f4d)",
    "homepage": "https://github.com/demoker/MicrometerLevelFormat",
    "license": "MIT",
    "authors": {
        "demoker": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/demoker/MicrometerLevelFormat.git",
        "tag": "1.0.0"
    },
    "source_files": "class/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This