123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // CodeTextDemo
- //
- // Created by 小侯爷 on 2018/9/20.
- // Copyright © 2018年 小侯爷. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class HWTFCodeView;
- @protocol HWTFCodeViewDelegate <NSObject>
- - (void)codeView:(HWTFCodeView *)codeView inputFnish:(NSString *)text;
- @end
- /**
- * 基础版 - 下划线
- */
- @interface HWTFCodeView : UIView
- /// 当前输入的内容
- @property (nonatomic, copy, readonly) NSString *code;
- - (instancetype)initWithCount:(NSInteger)count margin:(CGFloat)margin;
- - (instancetype)init UNAVAILABLE_ATTRIBUTE;
- + (instancetype)new UNAVAILABLE_ATTRIBUTE;
- @property (nonatomic, weak) id<HWTFCodeViewDelegate> delegate;
- @end
- NS_ASSUME_NONNULL_END
|