TJLInputText
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
###设置方法 @property (weak, nonatomic) IBOutlet CunstomTextFiled *letterInput; @property (weak, nonatomic) IBOutlet CunstomTextFiled *numberInput;
调用方法
self.letterInput.delegate = self; self.numberInput.delegate = self; self.letterInput.inputValidate = [LatterTextFieldValidate new]; self.numberInput.inputValidate = [NumberTextFieldValidate new];
- (void)textFieldDidEndEditing:(UITextField *)textField {
if ([textField isKindOfClass:[CunstomTextFiled class]]) {
[(CunstomTextFiled *)textField validate]; } }
需要什么 规则 只需要创建一个类 ,继承InputTextFileldValidate,然后写约束。
Installation
TJLInputText is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TJLInputText'
Author
tang335976123, [email protected]
License
TJLInputText is available under the MIT license. See the LICENSE file for more info.