Skip to content

Commit 7184542

Browse files
committed
codeLength readOnly
1 parent cc176f6 commit 7184542

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

PodCode/Classes/CRBoxInputView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef void(^TextEditStatusChangeblock)(CRTextEditStatus editStatus);
4444
codeLength
4545
default: 4
4646
*/
47-
@property (nonatomic, assign) NSInteger codeLength __deprecated_msg("Please use `- (instancetype)initWithCodeLength:(NSInteger)codeLength, or - (void)resetCodeLength:(NSInteger)codeLength beginEdit:(BOOL)beginEdit` in CRBoxInputView. This property will change to readonly sooner or later");;
47+
@property (nonatomic, assign, readonly) NSInteger codeLength; //If you want to set codeLength, please use `- (instancetype)initWithCodeLength:(NSInteger)codeLength, or - (void)resetCodeLength:(NSInteger)codeLength beginEdit:(BOOL)beginEdit` in CRBoxInputView.
4848

4949
/**
5050
是否开启密文模式

PodCode/Classes/CRBoxInputView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ @interface CRBoxInputView () <UICollectionViewDataSource, UICollectionViewDelega
2222
BOOL _ifNeedBeginEdit;
2323
}
2424

25+
@property (nonatomic, assign) NSInteger codeLength;
2526
@property (nonatomic, strong) UITapGestureRecognizer *tapGR;
2627
@property (nonatomic, strong) CRBoxTextView *textView;
2728
@property (nonatomic, strong) UICollectionView *mainCollectionView;

0 commit comments

Comments
 (0)