1234567891011121314151617181920212223242526 |
- //
- // XLTextCalculateHelper.h
- // amigo
- //
- // Created by wujian on 2017/9/30.
- // Copyright © 2017年 xiaolian.Inc. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @interface XLTextCalculateHelper : NSObject
- //textField 文本将要变动
- + (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string textLimit:(NSUInteger)textLimit;
- //textView 文本将要变动
- + (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text textLimit:(NSUInteger)textLimit;
- //textField 文本变动
- + (BOOL)textFieldDidChangeWillContinue:(UITextField *)textField textLimit:(NSUInteger)textLimit;
- //textView 文本变动
- + (BOOL)textViewDidChangeWillContinue:(UITextView *)textView textLimit:(NSUInteger)textLimit;
- @end
|