iOS 输入框 (装饰模式+策略模式)

骑上蜗牛去看大海 2020-07-07 18.04.21.gif

ZPTextAttribiteFild:

/// placeHold 和 输入框的间距
@property (nonatomic, assign) CGFloat placeHoldSpaceFild;
/// 输入框距离底部的间距
@property (nonatomic, assign) CGFloat fildSpaceBottom;
/// 占位文字颜色
@property (nonatomic, strong) UIColor *placeholderTextColor;
/// 底部线的颜色
@property (nonatomic, strong) UIColor *lineColor;
/// 底部线选中后的颜色
@property (nonatomic, strong) UIColor *lineSelecateColor;
/// 占位文字大小
@property (nonatomic, strong) UIFont *placeholderFont;
/// 验证输入合法性
@property (nonatomic, strong) ZPTextAttribiteBaseVrify * verify;

placeHoldSpaceFild.png

gitHub: https://github.com/ZPP506/ZPTextAttribiteFild

你可能感兴趣的:(iOS 输入框 (装饰模式+策略模式))