// // MTBaseTextField.m // // Created by Simon on 2019/3/22. // Copyright © 2019 Simon. All rights reserved. // #import "MTBaseTextField.h" @implementation MTBaseTextField //UITextField方法实现 +(MTBaseTextField *)textFieldWithFrame:(CGRect)rect placeholder:(NSString *)placeholder secureTextEntry:(BOOL)bool1 textColor:(UIColor *)color1 backGroundColor:(UIColor *)color2 font:(UIFont *)font { MTBaseTextField *tf = [[MTBaseTextField alloc]init]; tf.frame = rect; tf.backgroundColor = color2; tf.placeholder = placeholder; tf.secureTextEntry =bool1; tf.textColor = color1; tf.font = font; return tf; } @end