Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
0905ace5
Commit
0905ace5
authored
Dec 27, 2023
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// mod 验证码组件
parent
1d90ca75
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
35 deletions
+35
-35
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+12
-12
galaxy-Bridge-Header.h
galaxy/galaxy/Classes/Others/galaxy-Bridge-Header.h
+2
-2
YHMyViewController.swift
galaxy/galaxy/Modules/Mine(我的)/C/YHMyViewController.swift
+2
-2
YHSMSCodeInputView.h
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/YHSMSCodeInputView.h
+2
-2
YHSMSCodeInputView.m
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/YHSMSCodeInputView.m
+13
-13
YHSMSCodeView.h
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/YHSMSCodeView.h
+1
-1
YHSMSCodeView.m
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/YHSMSCodeView.m
+3
-3
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
0905ace5
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
04F526AF2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526AE2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift */
;
};
04F526AF2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526AE2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift */
;
};
04F526C12B3A657000FC6CE6
/* YHValidateCodeInputView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C02B3A657000FC6CE6
/* YHValidateCodeInputView.swift */
;
};
04F526C12B3A657000FC6CE6
/* YHValidateCodeInputView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C02B3A657000FC6CE6
/* YHValidateCodeInputView.swift */
;
};
04F526C72B3BB94200FC6CE6
/*
BsSMSCodeInputView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C32B3BB94200FC6CE6
/* Bs
SMSCodeInputView.m */
;
};
04F526C72B3BB94200FC6CE6
/*
YHSMSCodeInputView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C32B3BB94200FC6CE6
/* YH
SMSCodeInputView.m */
;
};
04F526C82B3BB94200FC6CE6
/*
BsSMSCodeView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C42B3BB94200FC6CE6
/* Bs
SMSCodeView.m */
;
};
04F526C82B3BB94200FC6CE6
/*
YHSMSCodeView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F526C42B3BB94200FC6CE6
/* YH
SMSCodeView.m */
;
};
04FAC5432B32BA5F00D24B36
/* YHHomeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5422B32BA5F00D24B36
/* YHHomeViewController.swift */
;
};
04FAC5432B32BA5F00D24B36
/* YHHomeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5422B32BA5F00D24B36
/* YHHomeViewController.swift */
;
};
04FAC5452B32BA7000D24B36
/* YHMyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5442B32BA7000D24B36
/* YHMyViewController.swift */
;
};
04FAC5452B32BA7000D24B36
/* YHMyViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5442B32BA7000D24B36
/* YHMyViewController.swift */
;
};
04FAC54A2B32CF1000D24B36
/* YHNetRequest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5492B32CF1000D24B36
/* YHNetRequest.swift */
;
};
04FAC54A2B32CF1000D24B36
/* YHNetRequest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04FAC5492B32CF1000D24B36
/* YHNetRequest.swift */
;
};
...
@@ -85,10 +85,10 @@
...
@@ -85,10 +85,10 @@
04F526AE2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPersonalCenterCell.swift
;
sourceTree
=
"<group>"
;
};
04F526AE2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPersonalCenterCell.swift
;
sourceTree
=
"<group>"
;
};
04F526BF2B39733000FC6CE6
/* galaxy-Bridge-Header.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"galaxy-Bridge-Header.h"
;
sourceTree
=
"<group>"
;
};
04F526BF2B39733000FC6CE6
/* galaxy-Bridge-Header.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"galaxy-Bridge-Header.h"
;
sourceTree
=
"<group>"
;
};
04F526C02B3A657000FC6CE6
/* YHValidateCodeInputView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHValidateCodeInputView.swift
;
sourceTree
=
"<group>"
;
};
04F526C02B3A657000FC6CE6
/* YHValidateCodeInputView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHValidateCodeInputView.swift
;
sourceTree
=
"<group>"
;
};
04F526C32B3BB94200FC6CE6
/*
BsSMSCodeInputView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
Bs
SMSCodeInputView.m
;
sourceTree
=
"<group>"
;
};
04F526C32B3BB94200FC6CE6
/*
YHSMSCodeInputView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
YH
SMSCodeInputView.m
;
sourceTree
=
"<group>"
;
};
04F526C42B3BB94200FC6CE6
/*
BsSMSCodeView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
Bs
SMSCodeView.m
;
sourceTree
=
"<group>"
;
};
04F526C42B3BB94200FC6CE6
/*
YHSMSCodeView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
YH
SMSCodeView.m
;
sourceTree
=
"<group>"
;
};
04F526C52B3BB94200FC6CE6
/*
BsSMSCodeInputView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
Bs
SMSCodeInputView.h
;
sourceTree
=
"<group>"
;
};
04F526C52B3BB94200FC6CE6
/*
YHSMSCodeInputView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
YH
SMSCodeInputView.h
;
sourceTree
=
"<group>"
;
};
04F526C62B3BB94200FC6CE6
/*
BsSMSCodeView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
Bs
SMSCodeView.h
;
sourceTree
=
"<group>"
;
};
04F526C62B3BB94200FC6CE6
/*
YHSMSCodeView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
YH
SMSCodeView.h
;
sourceTree
=
"<group>"
;
};
04FAC5422B32BA5F00D24B36
/* YHHomeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeViewController.swift
;
sourceTree
=
"<group>"
;
};
04FAC5422B32BA5F00D24B36
/* YHHomeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHHomeViewController.swift
;
sourceTree
=
"<group>"
;
};
04FAC5442B32BA7000D24B36
/* YHMyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyViewController.swift
;
sourceTree
=
"<group>"
;
};
04FAC5442B32BA7000D24B36
/* YHMyViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHMyViewController.swift
;
sourceTree
=
"<group>"
;
};
04FAC5492B32CF1000D24B36
/* YHNetRequest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNetRequest.swift
;
sourceTree
=
"<group>"
;
};
04FAC5492B32CF1000D24B36
/* YHNetRequest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNetRequest.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -197,10 +197,10 @@
...
@@ -197,10 +197,10 @@
04F526C22B3BB94200FC6CE6
/* 验证码输入框 */
=
{
04F526C22B3BB94200FC6CE6
/* 验证码输入框 */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
04F526C32B3BB94200FC6CE6
/*
Bs
SMSCodeInputView.m */
,
04F526C32B3BB94200FC6CE6
/*
YH
SMSCodeInputView.m */
,
04F526C42B3BB94200FC6CE6
/*
Bs
SMSCodeView.m */
,
04F526C42B3BB94200FC6CE6
/*
YH
SMSCodeView.m */
,
04F526C52B3BB94200FC6CE6
/*
Bs
SMSCodeInputView.h */
,
04F526C52B3BB94200FC6CE6
/*
YH
SMSCodeInputView.h */
,
04F526C62B3BB94200FC6CE6
/*
Bs
SMSCodeView.h */
,
04F526C62B3BB94200FC6CE6
/*
YH
SMSCodeView.h */
,
);
);
path
=
"验证码输入框"
;
path
=
"验证码输入框"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -658,7 +658,7 @@
...
@@ -658,7 +658,7 @@
A52DF0CE2B330A20006618D6
/* BsOverlayView.swift in Sources */
,
A52DF0CE2B330A20006618D6
/* BsOverlayView.swift in Sources */
,
A52DF0C92B330A20006618D6
/* AlignedCollectionViewFlowLayout.swift in Sources */
,
A52DF0C92B330A20006618D6
/* AlignedCollectionViewFlowLayout.swift in Sources */
,
A52DF0BC2B330A20006618D6
/* YHNetworkStatusManager.swift in Sources */
,
A52DF0BC2B330A20006618D6
/* YHNetworkStatusManager.swift in Sources */
,
04F526C72B3BB94200FC6CE6
/*
Bs
SMSCodeInputView.m in Sources */
,
04F526C72B3BB94200FC6CE6
/*
YH
SMSCodeInputView.m in Sources */
,
A52DF0CA2B330A20006618D6
/* UIViewController+Navigation.swift in Sources */
,
A52DF0CA2B330A20006618D6
/* UIViewController+Navigation.swift in Sources */
,
04FAC5532B3AC6F200D24B36
/* YHLoginPrivacyView.swift in Sources */
,
04FAC5532B3AC6F200D24B36
/* YHLoginPrivacyView.swift in Sources */
,
04FAC54F2B3AA6EC00D24B36
/* YHLoginViewController.swift in Sources */
,
04FAC54F2B3AA6EC00D24B36
/* YHLoginViewController.swift in Sources */
,
...
@@ -678,7 +678,7 @@
...
@@ -678,7 +678,7 @@
A52DF0BD2B330A20006618D6
/* YHBaseUrlManager.swift in Sources */
,
A52DF0BD2B330A20006618D6
/* YHBaseUrlManager.swift in Sources */
,
A52DF2342B330A21006618D6
/* BsBaseModel.swift in Sources */
,
A52DF2342B330A21006618D6
/* BsBaseModel.swift in Sources */
,
04FAC54D2B3A9E3D00D24B36
/* YHConfig.swift in Sources */
,
04FAC54D2B3A9E3D00D24B36
/* YHConfig.swift in Sources */
,
04F526C82B3BB94200FC6CE6
/*
Bs
SMSCodeView.m in Sources */
,
04F526C82B3BB94200FC6CE6
/*
YH
SMSCodeView.m in Sources */
,
04F526AF2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift in Sources */
,
04F526AF2B32D4B600FC6CE6
/* YHPersonalCenterCell.swift in Sources */
,
A52DF23B2B330A21006618D6
/* YHNoDataTipView.swift in Sources */
,
A52DF23B2B330A21006618D6
/* YHNoDataTipView.swift in Sources */
,
A52DF23F2B3316A0006618D6
/* YHBasicContentView.swift in Sources */
,
A52DF23F2B3316A0006618D6
/* YHBasicContentView.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Others/galaxy-Bridge-Header.h
View file @
0905ace5
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
#ifndef galaxy_Bridge_Header_h
#ifndef galaxy_Bridge_Header_h
#define galaxy_Bridge_Header_h
#define galaxy_Bridge_Header_h
#import "
Bs
SMSCodeInputView.h"
#import "
YH
SMSCodeInputView.h"
#import "
Bs
SMSCodeView.h"
#import "
YH
SMSCodeView.h"
#endif
/* galaxy_Bridge_Header_h */
#endif
/* galaxy_Bridge_Header_h */
galaxy/galaxy/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
0905ace5
...
@@ -31,8 +31,8 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -31,8 +31,8 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
return
tableView
return
tableView
}()
}()
lazy
var
smsInputView
:
Bs
SMSCodeInputView
=
{
lazy
var
smsInputView
:
YH
SMSCodeInputView
=
{
let
codeView
=
Bs
SMSCodeInputView
(
frame
:
CGRectZero
)
let
codeView
=
YH
SMSCodeInputView
(
frame
:
CGRectZero
)
return
codeView
return
codeView
}()
}()
...
...
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
Bs
SMSCodeInputView.h
→
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
YH
SMSCodeInputView.h
View file @
0905ace5
...
@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
Bs
SMSCodeInputView
:
UIView
@interface
YH
SMSCodeInputView
:
UIView
///验证码文字
///验证码文字
@property
(
strong
,
nonatomic
)
NSString
*
codeText
;
@property
(
strong
,
nonatomic
)
NSString
*
codeText
;
...
@@ -29,6 +29,6 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -29,6 +29,6 @@ NS_ASSUME_NONNULL_BEGIN
@protocol
BsSMSCodeInputViewDelegate
<
NSObject
>
@protocol
BsSMSCodeInputViewDelegate
<
NSObject
>
@optional
@optional
-
(
void
)
textFieldFinisedInput
:
(
Bs
SMSCodeInputView
*
)
input
verifyCode
:
(
NSString
*
)
code
;
-
(
void
)
textFieldFinisedInput
:
(
YH
SMSCodeInputView
*
)
input
verifyCode
:
(
NSString
*
)
code
;
@end
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_END
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
Bs
SMSCodeInputView.m
→
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
YH
SMSCodeInputView.m
View file @
0905ace5
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
// Copyright © 2020 姬友大人. All rights reserved.
// Copyright © 2020 姬友大人. All rights reserved.
//
//
#import "
Bs
SMSCodeInputView.h"
#import "
YH
SMSCodeInputView.h"
#import "
Bs
SMSCodeView.h"
#import "
YH
SMSCodeView.h"
@interface
Bs
SMSCodeInputView
()
<
UITextFieldDelegate
>
@interface
YH
SMSCodeInputView
()
<
UITextFieldDelegate
>
///输入框
///输入框
@property
(
strong
,
nonatomic
)
UITextField
*
textField
;
@property
(
strong
,
nonatomic
)
UITextField
*
textField
;
///格子数组
///格子数组
@property
(
nonatomic
,
strong
)
NSMutableArray
<
Bs
SMSCodeView
*>
*
arrayTextFidld
;
@property
(
nonatomic
,
strong
)
NSMutableArray
<
YH
SMSCodeView
*>
*
arrayTextFidld
;
///记录上一次的字符串
///记录上一次的字符串
@property
(
strong
,
nonatomic
)
NSString
*
lastString
;
@property
(
strong
,
nonatomic
)
NSString
*
lastString
;
///放置小格子
///放置小格子
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
@end
@end
@implementation
Bs
SMSCodeInputView
@implementation
YH
SMSCodeInputView
-
(
instancetype
)
init
{
-
(
instancetype
)
init
{
if
(
self
=
[
super
init
])
{
if
(
self
=
[
super
init
])
{
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
if
(
_arrayTextFidld
.
count
<
_codeCount
)
{
//已经存在的子控件比新来的数要小, 那么就创建
if
(
_arrayTextFidld
.
count
<
_codeCount
)
{
//已经存在的子控件比新来的数要小, 那么就创建
NSUInteger
c
=
_codeCount
-
_arrayTextFidld
.
count
;
NSUInteger
c
=
_codeCount
-
_arrayTextFidld
.
count
;
for
(
NSInteger
i
=
0
;
i
<
c
;
i
++
)
{
for
(
NSInteger
i
=
0
;
i
<
c
;
i
++
)
{
BsSMSCodeView
*
v
=
[[
Bs
SMSCodeView
alloc
]
init
];
YHSMSCodeView
*
v
=
[[
YH
SMSCodeView
alloc
]
init
];
[
_arrayTextFidld
addObject
:
v
];
[
_arrayTextFidld
addObject
:
v
];
}
}
}
else
if
(
_arrayTextFidld
.
count
==
_codeCount
)
{
//个数相等
}
else
if
(
_arrayTextFidld
.
count
==
_codeCount
)
{
//个数相等
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
//重新布局小格子
//重新布局小格子
for
(
NSInteger
i
=
0
;
i
<
_arrayTextFidld
.
count
;
i
++
)
{
for
(
NSInteger
i
=
0
;
i
<
_arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
t
=
_arrayTextFidld
[
i
];
YH
SMSCodeView
*
t
=
_arrayTextFidld
[
i
];
[
self
.
contentView
addSubview
:
t
];
[
self
.
contentView
addSubview
:
t
];
t
.
frame
=
CGRectMake
(
i
*
(
w
+
_codeSpace
),
0
,
w
,
self
.
bounds
.
size
.
height
);
t
.
frame
=
CGRectMake
(
i
*
(
w
+
_codeSpace
),
0
,
w
,
self
.
bounds
.
size
.
height
);
}
}
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
//设置文字
//设置文字
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
YH
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
if
(
i
<
stringArray
.
count
)
{
if
(
i
<
stringArray
.
count
)
{
BsSMSCodeView
.
text
=
stringArray
[
i
];
BsSMSCodeView
.
text
=
stringArray
[
i
];
}
else
{
}
else
{
...
@@ -159,17 +159,17 @@
...
@@ -159,17 +159,17 @@
if
(
stringArray
.
count
==
0
)
{
if
(
stringArray
.
count
==
0
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
BOOL
show
=
(
i
==
0
?
YES
:
NO
);
BOOL
show
=
(
i
==
0
?
YES
:
NO
);
Bs
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
YH
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
BsSMSCodeView
.
showCursor
=
show
;
BsSMSCodeView
.
showCursor
=
show
;
}
}
}
else
if
(
stringArray
.
count
==
self
.
arrayTextFidld
.
count
)
{
}
else
if
(
stringArray
.
count
==
self
.
arrayTextFidld
.
count
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
YH
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
BsSMSCodeView
.
showCursor
=
NO
;
BsSMSCodeView
.
showCursor
=
NO
;
}
}
}
else
{
}
else
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
YH
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
if
(
i
==
stringArray
.
count
)
{
if
(
i
==
stringArray
.
count
)
{
BsSMSCodeView
.
showCursor
=
YES
;
BsSMSCodeView
.
showCursor
=
YES
;
}
else
{
}
else
{
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
-
(
BOOL
)
resignFirstResponder
{
-
(
BOOL
)
resignFirstResponder
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
for
(
int
i
=
0
;
i
<
self
.
arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
YH
SMSCodeView
*
BsSMSCodeView
=
self
.
arrayTextFidld
[
i
];
BsSMSCodeView
.
showCursor
=
NO
;
BsSMSCodeView
.
showCursor
=
NO
;
}
}
[
self
.
textField
resignFirstResponder
];
[
self
.
textField
resignFirstResponder
];
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
self
.
textField
.
text
=
@""
;
self
.
textField
.
text
=
@""
;
for
(
NSInteger
i
=
0
;
i
<
_arrayTextFidld
.
count
;
i
++
)
{
for
(
NSInteger
i
=
0
;
i
<
_arrayTextFidld
.
count
;
i
++
)
{
Bs
SMSCodeView
*
t
=
_arrayTextFidld
[
i
];
YH
SMSCodeView
*
t
=
_arrayTextFidld
[
i
];
t
.
text
=
@""
;
t
.
text
=
@""
;
if
(
i
==
0
)
{
if
(
i
==
0
)
{
t
.
showCursor
=
YES
;
t
.
showCursor
=
YES
;
...
...
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
Bs
SMSCodeView.h
→
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
YH
SMSCodeView.h
View file @
0905ace5
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
Bs
SMSCodeView
:
UIView
@interface
YH
SMSCodeView
:
UIView
///文字
///文字
@property
(
nonatomic
,
strong
)
NSString
*
text
;
@property
(
nonatomic
,
strong
)
NSString
*
text
;
...
...
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
Bs
SMSCodeView.m
→
galaxy/galaxy/Modules/Mine(我的)/V/验证码输入框/
YH
SMSCodeView.m
View file @
0905ace5
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
// Copyright © 2020 姬友大人. All rights reserved.
// Copyright © 2020 姬友大人. All rights reserved.
//
//
#import "
Bs
SMSCodeView.h"
#import "
YH
SMSCodeView.h"
@interface
Bs
SMSCodeView
()
@interface
YH
SMSCodeView
()
@property
(
nonatomic
,
strong
)
UILabel
*
label
;
@property
(
nonatomic
,
strong
)
UILabel
*
label
;
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
@end
@end
@implementation
Bs
SMSCodeView
@implementation
YH
SMSCodeView
-
(
instancetype
)
init
{
-
(
instancetype
)
init
{
self
=
[
super
init
];
self
=
[
super
init
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment