LFYTextInputFilter 1.0.5

LFYTextInputFilter 1.0.5

Maintained by Abei99856119 --verbose.



LFYTextInputFilter

Pod version CocoaPods CI Status Version License Platform

只允许中文输入

image

只允许数字输入

image

同时支持多种组合

创建简单,无需添加代理

    /// 只能输入字母和数字 
    [_textField lfy_makeStrategy:^(LFYStrategyMaker *make) {
        make.lfy_limit(15).lfy_option(LFYStrategyOptionNumber | LFYStrategyOptionCharacter);
    }];
    
    /// 不能输入空格
    [_textView lfy_makeStrategy:^(LFYStrategyMaker *make) {
        make.lfy_limit(10).lfy_option(LFYStrategyOptionWhitespace).lfy_inverted();
    }];

Requirements

iOS 8.0

Installation

LFYTextInputFilter is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'LFYTextInputFilter'

Author

[email protected]

License

LFYTextInputFilter is available under the MIT license. See the LICENSE file for more info.