// // CodeInputView.h // JDZBorrower // // Created by WangXueqi on 2018/4/20. // Copyright © 2018年 JingBei. All rights reserved. // 使用: let viewCode = CodeInputView(frame: CGRect(x: (ScreenWidth - 260)/2, y: 172, width: 260 , height: 41), inputType: 6) { (str) in} // viewContent.addSubview(viewCode!); #import typedef void(^SelectCodeBlock)(NSString *); @interface CodeInputView : UIView @property(nonatomic,copy)SelectCodeBlock CodeBlock; @property(nonatomic,assign)NSInteger inputNum;//验证码输入个数(4或6个) @property(nonatomic,assign)CGFloat K_W;//验证码输入个数(4或6个) - (instancetype)initWithFrame:(CGRect)frame inputType:(NSInteger)inputNum selectCodeBlock:(SelectCodeBlock)CodeBlock; - (void)endEdit; @end